How to /q +REP - 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)
+--- Thread: How to /q +REP (
/showthread.php?tid=332722)
How to /q +REP -
TheMightyEddy - 09.04.2012
I have a login dialog. It has a box for you to put your password in it and there are two buttons below it.
Login and Cancel. Here is my Cancel code:
pawn Код:
if(dialogid == DIALOG_LOGIN)
{
if(response == 0)
{
SendClientMessage(playerid, COLOR_ERROR, "You must login below.");
LogPlayer(playerid);
return 1;
}
I want it so when they click on the button "Cancel", it will automatically let them /q or quit the game.
Re: How to /q +REP -
Reklez - 09.04.2012
pawn Код:
if(!response) return Kick(playerid);
Re: How to /q +REP -
TheMightyEddy - 09.04.2012
Thank you!