18.01.2014, 18:42
Try this
ShowPlayerDialog
OnDialogResponse
ShowPlayerDialog
pawn Код:
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Rules","Rules server:\nRule 1\nRule 2\nRule 3","Accept","Cancel");
pawn Код:
if(dialogid == 8)
{
if(response == 0)
{
SendClientMessage(playerid, -1, "You have been kicked for not accepting the rules.");
Kick(playerid);
}
if(response == 1)
{
SendClientMessage(playerid, -1, "Thank you for accepting the rules");
}
return 1;
}