23.03.2012, 17:37
Okay i made this code with no errors..
For some reason the health wont drop down by 5 minutes if the hp is lower than 20 -_-
Код:
public CheckHealth(playerid)
{
new Float:Health;
GetPlayerHealth(playerid,Health);
if(Health < 20)
{
hptimer = SetTimer("losehp",1000,true);
}
return 1;
}
forward hptimer(playerid);
public hptimer(playerid)
{
new Float:Health;
GetPlayerHealth(playerid, Health);
SetPlayerHealth(playerid, Health -5);
return 1;
}


