21.01.2011, 11:12
pawn Код:
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, "Title", "Don't accept rules\nAccept Rules", "Proceed", "Cancel");
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == dialogid)
{
if(response)
{
if(listitem == 0)
{
Kick(playerid);
}
if(listitem == 1)
{
SendClientMessage(playerid, NAME_COLOR, "Thank you for accepting the rules");
}
return 1;
}
}
return 1;
}