11.10.2011, 20:28
PHP код:
if (DistanciaPontos(1607.537353, 1817.338500, ppx, ppy) < 3)
{
SetTimerEx("GanharVida", 1000, true, "i", playerid);
}
// FIM DO GM
forward GanharVida(playerid);
public GanharVida(playerid)
{
new
Float: Vida[MAX_PLAYERS char]
;
GetPlayerHealth(playerid, Vida[playerid]);
if(Vida[playerid] < 100)
return SetPlayerHealth(playerid, Vida[playerid]++);
return Vida;
}