[AJUDA] Vida Hospital
#6

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;
}
agora sim correto
Reply


Messages In This Thread
[AJUDA] Vida Hospital - by Mattos - 10.10.2011, 04:10
Re: [AJUDA] Vida Hospital - by Vai_Besta - 10.10.2011, 04:16
Re: [AJUDA] Vida Hospital - by Mattos - 10.10.2011, 04:17
Re: [AJUDA] Vida Hospital - by DreeH - 10.10.2011, 04:23
Re: [AJUDA] Vida Hospital - by Case Sensitive - 10.10.2011, 04:29
Re: [AJUDA] Vida Hospital - by Vai_Besta - 10.10.2011, 04:29

Forum Jump:


Users browsing this thread: 2 Guest(s)