How to /q +REP
#1

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.
Reply
#2

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

Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)