Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[FilterScript] Satiety System

$
0
0
Satiety System

This simple system, understandable even to a beginner, sets the value of satiety for all players on the server. At each specific time, the player’s satiety will change to a specific value. If the satiety is less than the minimum satiety value, then the player will be deducted a certain amount of health.

You can change the values ​​in filterscript yourself:
HTML Code:

#define SATIETY_TIMER_SECOND 10 // The number of seconds in which the satiety will be deducted.
#define SATIETY_HEALTH_MINUS 3  // Reduce the number of lives at below the minimum of satiety.
#define SATIETY_MINIMUM      25 // The amount of minimum satiety at which health will already be taken away.
#define SATIETY_MINUS        2  // The amount of reduced satiety in a certain number of seconds.

Functions to change the value of satiety:
HTML Code:

SetPlayerSatiety(playerid, amount); // Set the value of satiety.
GetPlayerSatiety(playerid); // Get the value of satiety.






Author: keytruth

Viewing all articles
Browse latest Browse all 595

Trending Articles