03.12.2012, 19:28
Make sure the value doesn't go negative aswel:
pawn Код:
new Float:hp;
GetPlayerHealth(playerid, hp);
SetPlayerHealth(playerid, (hp - 60 >= 0) ? (hp - 60) : 0);