How to /q +REP

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.");
            return 1;
I want it so when they click on the button "Cancel", it will automatically let them /q or quit the game.

pawn Код:
if(!response) return Kick(playerid);

Thank you!

Forum Jump:

Users browsing this thread: 1 Guest(s)