24.04.2011, 20:58
How to do it in timer? I have already that timer and all but I dont know how to add like +10 health when it is done?? xD
SetTimer("UpdateHealth",1000*60,true);
forward UpdateHealth();
public UpdateHealth()
{
for(new playerid = 0; playerid != MAX_PLAYERS; playerid++)
{
if(!IsPlayerConnected(playerid)) continue;
new Float:Health;
GetPlayerHealth(playerid,Health);
SetPlayerHealth(playerid,Health+10);
}
return 1;
}