10.10.2011, 04:29
(
Последний раз редактировалось Vai_Besta; 10.10.2011 в 05:29.
)
pawn Код:
new
bool: SetouVida[MAX_PLAYERS char]
;
// No comando
if(SetouVida[playerid] == true) return SendClientMessage(playerid, -1, "Vocк jб ganhou vida a pouco tempo, aguarde 1 minuto");
else
{
if (DistanciaPontos(1607.537353, 1817.338500, ppx, ppy) < 3) return SetPlayerHealth(playerid, 100.000000); // VIDA HOSPITAL LV
SetouVida[playerid] = true;
SetTimerEx("Delay", 60000, 0, "i", playerid);
}
// No final do Gamemode
forward Delay(playerid);
public Delay(playerid)
{
return SetouVida[playerid] = false;
}