[Ajuda] Comando em Dialog
#3

ve assim:

pawn Код:
//onplayercommandtext

if(strcmp(cmdtext, "/equipes", true) == 0)
{
     ShowPlayerDialog(playerid, 98, DIALOG_STYLE_LIST, "Escolha uma Equipe!", "Policia\nTraficante", "Escolher", "Fechar");
     return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
     if(dialogid == 98)
     {
          if(response)
          {
               if(listitem == 0)
               {
                    OnPlayerCommandText(playerid, "/policia");
                    return 1;
               }
               if(listitem == 1)
               {
                    OnPlayerCommandText(playerid, "/traficante");
                    return 1;
               }
          }
     }
     return 1;
}
Reply


Messages In This Thread
[Ajuda] Comando em Dialog - by Shakal_XD - 12.02.2012, 23:21
Re: [Ajuda] Comando em Dialog - by |_MeGaTroN_| - 12.02.2012, 23:33
Re: [Ajuda] Comando em Dialog - by Lucas_Alemao - 12.02.2012, 23:36

Forum Jump:


Users browsing this thread: 1 Guest(s)