23.03.2012, 18:54
Quote:
|
Just set the timer to the correct value. The timer should be like 300k ms or so
|
Код:
forward CheckHealth(playerid);
public CheckHealth(playerid)
{
new Float:Health;
GetPlayerHealth(playerid,Health);
if(Health < 20)
{
SetTimerEx("losehp",300000,true);
}
return 1;
}
forward losehp(playerid);
public losehp(playerid)
{
new Float:Health;
GetPlayerHealth(playerid, Health);
SetPlayerHealth(playerid, Health -5);
return 1;
}


