[Ajuda] Fazendo o /vida
#8

pawn Код:
new bool:UsouVida[MAX_PLAYERS];
new Tempo_Usar_Vida[MAX_PLAYERS];
//OnPlayerConnect:
UsouVida[playerid] = false;
//Fim do GM:
UsarNovamente(playerid);public UsarNovamente(playerid) {
    if(UsouVida[playerid]) {
        Tempo_Usar_Vida[playerid] --;
        if(Tempo_Usar_Vida[playerid] = 0) {
               UsouVida[playerid] = false;
               SendClientMessage(playerid,0xC0C0C0AA,"Vocк pode usar /vida novamente..");
        }
    }
    return 1;
}
// Comando:
CMD:vida(playerid,params[])
    {
            if(PlayerInfo[playerid][pEquipe] == SOBREVIVENTE)
            {
            if(UsouVida[playerid]) return SendClientMessage(playerid, -1, "Vocк pegou 20 de vida, Espere 60s para pegar novamente!");
            UsouVida[playerid] = true;
            Tempo_Usar_Vida[playerid] = 60;
            SetTimerEx("UsarNovamente",1000,true,"d",playerid);
        }
        return 1;
    }
Reply


Messages In This Thread
Fazendo o /vida - by Coringa_Vilao - 28.02.2013, 15:30
Re: Fazendo o /vida - by Maklister - 28.02.2013, 15:32
Re: Fazendo o /vida - by mau.tito - 28.02.2013, 15:32
Re: Fazendo o /vida - by Coringa_Vilao - 28.02.2013, 15:33
Re: Fazendo o /vida - by HumildadeAgain - 28.02.2013, 15:33
Re: Fazendo o /vida - by Coringa_Vilao - 28.02.2013, 15:50
Re: Fazendo o /vida - by Supera - 28.02.2013, 15:54
Re: Fazendo o /vida - by HumildadeAgain - 28.02.2013, 15:56
Re: Fazendo o /vida - by Coringa_Vilao - 28.02.2013, 15:58
Re: Fazendo o /vida - by HumildadeAgain - 28.02.2013, 15:59

Forum Jump:


Users browsing this thread: 3 Guest(s)