23.03.2012, 20:09
Код:
forward CheckHealth(playerid); public CheckHealth(playerid) { new Float:Health; GetPlayerHealth(playerid,Health); if(Health < 20) { SetTimerEx("losehp",60000,true); } return 1; } forward losehp(playerid); public losehp(playerid) { new Float:Health; GetPlayerHealth(playerid, Health); SetPlayerHealth(playerid, Health-5); return 1; }
is there something wrong that i made that prevents the hp to lose ?