[AJUDA]Comando /contar
#4

Entendi...

Tente assim:

pawn Код:
new
    Temp=5,
    IDAdmin,
    Tempo;

forward Contar();
public Contar()
{
    new jomla[15];
    for(new i; i < MAX_PLAYERS; i++)
    {
        GetPlayerPos(i,X,Y,Z);
        if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(IDAdmin, 60, X, Y, Z))
        {
            if(Temp == 0)
            {
                GameTextForPlayer(i,"] GO GO GO ]",1000,3);
                Temp = 5;
                TogglePlayerControllable(i,true);
                KillTimer(Tempo);
                return false;
            }
            format(jomla, sizeof(jomla),"] %d ]",Temp);
            GameTextForPlayer(i,jomla,1000,3);
            Temp --;
            TogglePlayerControllable(i,false);
            return Tempo = SetTimer("Contar", 1000, false);
        }
    }
    return 1;
}

CMD:contar(playerid)
{
    if(PlayerInfo[playerid][Level] >= 2)
    {
        if(Temp != 5) return SendClientMessage(playerid,fail,"ERRO: Ja Tem Contagem Em Andamento!");
        Contar();
        IDAdmin = playerid;
    }
    else SendClientMessage(playerid,fail,LEVELF);
    return 1;
}
Reply


Messages In This Thread
[AJUDA]Comando /contar - by ReDKiiL - 16.12.2011, 21:36
Re: [AJUDA]Comando /contar - by Lуs - 16.12.2011, 21:51
Re: [AJUDA]Comando /contar - by ReDKiiL - 16.12.2011, 22:10
Re: [AJUDA]Comando /contar - by Lуs - 16.12.2011, 22:18
Re: [AJUDA]Comando /contar - by ReDKiiL - 17.12.2011, 14:19
Re: [AJUDA]Comando /contar - by rjjj - 17.12.2011, 14:39

Forum Jump:


Users browsing this thread: 1 Guest(s)