18.01.2015, 22:18
pawn Код:
new PlayerBar:Food[MAX_PLAYERS];
pawn Код:
Food[playerid] = CreatePlayerProgressBar(playerid, 570.0, 105.0, 55.5, 3.2, yellow, 100.0, BAR_DIRECTION_RIGHT);
SetPlayerProgressBarValue(playerid, Food[playerid], PlayerInfo[playerid][pHunger]);
ShowPlayerProgressBar(playerid, Food[playerid]);
pawn Код:
new Float:value;
value = GetPlayerProgressBarValue(playerid, Food[playerid]);