15.07.2011, 19:14
In command
pawn Код:
Regernation(playerid,15);
pawn Код:
forward Regernation(playerid,times);
public Regernation(playerid,times)
{
if(times)
{
new Float:Health;
GetPlayerHealth(playerid, Health);
if(Health > 100) SetPlayerHealth(playerid, 100.0);
else SetPlayerHealth(playerid, Health + 2.0);
SetTimerEx("Regernation",2000,false,"dd",playerid,times-1);
}
return 1;
}