[Pedido] Comando em Dialog
#1

Ae blz?

To precisando aqui umas coizinhas pra coloca no meu server, ae alguem pode fala como eu posso fazer um /trazertodos em dialog?

pawn Код:
if(strcmp(cmd, "/trazertodos", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 2)
            {
                if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342 && PlayerInfo[playerid][pAdmin] != 1341)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                    return 1;
                }
                GetPlayerPos(playerid, trazerx, trazery, trazerz);
                for(new i=0; i<MAX_PLAYERS; i++)
                {
                    if(IsPlayerConnected(i))
                    {
                        TrazerTodos[i] = 1;
                        ShowPlayerDialog(i,9821,DIALOG_STYLE_MSGBOX,"{00FF00}Brasil{FFFF00}Life{FFFFFF} in {0000FF}Game","{FFFFFF}O Admin estб Chamando Todos.\n\nDeseja ir ao evento?","Sim","Nгo"); // Aqui isto nem funfa
                        OnTrazer = 1;
                    }
                }
                if(TrazerTodos[playerid] == 1)
                {
                    SendClientMessage(playerid ,COLOR_LIGHTRED, "CMD: Trazertodos Aitvado");
                    TrazerTodos[playerid] = 0;
                    return 1;
                }
                if(OnTrazer == 1)
                {
                    SendClientMessage(playerid ,COLOR_GREY, "ERRO: Jб estгo usando!");
                    return 1;
                }
                return 1;
            }
            return 1;
        }
        return 1;
    }
DIALOG:
pawn Код:
if(dialogid == 9821)
    {
        if(response == 0)
        {
            OnPlayerCommandText(playerid,"/Sim");
            return 1;
        }
        if(response == 1)
        {
            if(WantedPoints[playerid] >= 1) return SendClientMessage(playerid, 0xAFAFAFAA, "Nгo Pode Ir no evento em procurado.");
            {
                OnPlayerCommandText(playerid,"Nao");
                return 1;
            }
        }
        return 1;
    }
Como o Trazer Todos ativa alguma coisa que num deixa eles fala sem ser sim ou nгo, eu usei o onPlayerCommandText para ele falar sim ou nгo mas num ta funfado , ajuda ae?

Dps +REP
Reply


Messages In This Thread
Comando em Dialog - by [PSN]Andre_Simpson - 19.07.2012, 16:28
Re: Comando em Dialog - by Ades - 19.07.2012, 16:35
Re: Comando em Dialog - by [PSN]Andre_Simpson - 19.07.2012, 16:39
Re: Comando em Dialog - by Ades - 19.07.2012, 16:41
Re: Comando em Dialog - by [PSN]Andre_Simpson - 19.07.2012, 17:06
Re: Comando em Dialog - by Ades - 19.07.2012, 17:18
Re: Comando em Dialog - by WaGnerLiima - 19.07.2012, 17:20
Re: Comando em Dialog - by [PSN]Andre_Simpson - 19.07.2012, 17:20
Re: Comando em Dialog - by Ades - 19.07.2012, 17:26
Re: Comando em Dialog - by WaGnerLiima - 19.07.2012, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)