07.10.2016, 17:47
PHP код:
new Bar:sleep[MAX_PLAYERS] = CreateProgressBar(581.00, 295.00, 55.50, 3.20, -16776961, 100.0);
new Bar:thirst[MAX_PLAYERS] = CreateProgressBar(580.00, 267.00, 55.50, 3.20, -16776961, 100.0);
new Bar:hunger[MAX_PLAYERS] = CreateProgressBar(579.00, 239.00, 55.50, 3.20, -16776961, 100.0);
PHP код:
ShowProgressBarForPlayer(playerid, sleep[playerid]);
ShowProgressBarForPlayer(playerid, thirst[playerid]);
ShowProgressBarForPlayer(playerid, hunger[playerid]);
SetProgressBarValue(sleep[playerid], Player[playerid][pBad]);
UpdateProgressBar(sleep[playerid], playerid);
SetProgressBarValue(thirst[playerid], Player[playerid][pThirst]);
UpdateProgressBar(thirst[playerid], playerid);
SetProgressBarValue(hunger[playerid], Player[playerid][pHunger]);
UpdateProgressBar(hunger[playerid], playerid);