public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid == //privacy security)
{
if (response == 1)
{
switch(listitem)
{
case 1: ShowPlayerDialog(playerid,89,DIALOG_STYLE_INPUT,"Ban Someone","Reason (optional) :","Accept","Denied");
case 2: ShowPlayerDialog(playerid,57,DIALOG_STYLE_INPUT,"Kick Someone","Reason (optional) :","Accept","Denied");
case 3: ShowPlayerDialog(playerid,67,DIALOG_STYLE_INPUT,"Jail Someone","Reason (optional) :","Accept","Denied");
case 4: ShowPlayerDialog(playerid,55,DIALOG_STYLE_INPUT,"Mute Someone","Reason (optional) :","Accept","Denied");
case 5: ShowPlayerDialog(playerid,50,DIALOG_STYLE_INPUT,"Admin PM : ","Enter ADMIN PM Text : ","Send","Cancel");
case 6: ShowPlayerDialog(playerid,45,DIALOG_STYLE_INPUT,"Take Cash $$$","How Much To Take (-$$$) : ","Take $$$","Cancel");
}
}
}
if (dialogid == 89 && response == 1)
{
// my code
if (dialogid == 67 && response == 1)
{
// my code
else
// my code
}
if (dialogid == 55 && response == 1)
{
// my code
}
}
if (dialogid == 50 && response == 1)
{
// my code
}
return 1;
}
case 0: ShowPlayerDialog(playerid,89,DIALOG_STYLE_INPUT,"Ban Someone","Reason (optional) :","Accept","Denied");
case 1: ShowPlayerDialog(playerid,57,DIALOG_STYLE_INPUT,"Kick Someone","Reason (optional) :","Accept","Denied");
case 2: ShowPlayerDialog(playerid,67,DIALOG_STYLE_INPUT,"Jail Someone","Reason (optional) :","Accept","Denied");
case 3: ShowPlayerDialog(playerid,55,DIALOG_STYLE_INPUT,"Mute Someone","Reason (optional) :","Accept","Denied");
case 4: ShowPlayerDialog(playerid,50,DIALOG_STYLE_INPUT,"Admin PM : ","Enter ADMIN PM Text : ","Send","Cancel");
case 5: ShowPlayerDialog(playerid,45,DIALOG_STYLE_INPUT,"Take Cash $$$","How Much To Take (-$$$) : ","Take $$$","Cancel");
Originally Posted by _Xerxes_
"listitem" starts with the ID 0. So
pawn Код:
|