04.11.2015, 03:39
It's quite obvious. These are global variables:
Make them arrays like these textdraws:
That will make them per-player. I'm pretty sure you're supposed to create player bars (haven't used the include in a while) in the script init. Basically your problem is that you're replacing the index stored in the global variables every time a player connects.
pawn Код:
new PlayerBar:BarHungry;
new PlayerBar:BarSleep;
new PlayerBar:BarDefecate;
pawn Код:
new Text:SleepBar[MAX_PLAYERS];
new Text:HungryBar[MAX_PLAYERS];
new PlayerText:DefecateBar[MAX_PLAYERS];