28.02.2012, 15:03
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.).
}