SA-MP Forums Archive
Dialog and ESC - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog and ESC (/showthread.php?tid=251103)



Dialog and ESC - MrND - 25.04.2011

I want to kick player if he ESCape from Dialog, can someone help me about this?


AW: Dialog and ESC - xerox8521 - 25.04.2011

OnDialogResponse

pawn Код:
if(dialogid == 1) // Note: that you have to change the ID / Name which you defined...
{
     if(!response)
     {
          SendClientMessage(playerid,0xFF0000AA,"You have aborted");
          Kick(playerid);
          return 1;
     }
}