Dialog help [+REP]
#3

ShowPlayerDialog(playerid,4156,DIALOG_STYLE_LIST," What is OOC,"1. Out of character\r\n2. Derp\r\n3. Herp","Continue", "Cancel");


pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
      if(dialogid == 4156)
      {
            if(!response)
            {
                Kick(playerid); // Send also a message that he failed at clicking something or don't kick and ShowPlayerDialog again
                return 1; // We processed it
            }
            if(listitem==0) SpawnPlayer[playerid];
            if(listitem==1 || listitem == 2) return Kick(playerid);
                 
      }
      return 0; // If you put return 1 here the callback will not continue to be called in other scripts (filterscripts, etc.).
}
Reply


Messages In This Thread
Dialog help [+REP] - by Gooday - 28.02.2012, 14:40
Re: Dialog help [+REP] - by FuTuяe - 28.02.2012, 14:58
Re: Dialog help [+REP] - by Roperr - 28.02.2012, 15:03

Forum Jump:


Users browsing this thread: 1 Guest(s)