[AJUDA]Comando /contar
#2

Public:

pawn Код:
forward Contar();
public Contar()
{
    new jomla[15];
    for(new i; i < MAX_PLAYERS; i++)
    {
        GetPlayerPos(i,X,Y,Z);
        if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,60,X,Y,Z))
        {
            if(Temp == 0)
            {
                GameTextForPlayer(i,"] GO GO GO ]",1000,3);
                Temp = 5;
                TogglePlayerControllable(i,true);
                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;
}
Comando:
pawn Код:
CMD:contar(playerid)
{
    if(PlayerInfo[playerid][Level] >= 2)
    {
        if(Temp != 5) return SendClientMessage(playerid,fail,"ERRO: Ja Tem Contagem Em Andamento!");
        Contar();
    }
    else SendClientMessage(playerid,fail,LEVELF);
    return 1;
}
Tente.
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)