19.06.2012, 01:48
pawn Код:
new Float: currenthp;
GetPlayerHealth(playerid, currenthp);
if(currenthp > 95) return SetPlayerHealth(playerid, 100);
if(currenthp == 100) return SendClientMessage(playerid, COLOR_RED, "You ate too much!");
SetPlayerHealth(playerid, currenthp+5);