transferring register and login in dialogs?
#2

pawn Код:
#define DIALOG_REG 1
#define DIALOG_LOG 2

public OnPlayerConnect(playerid)
{
    //Check if player exist ? Use your udb_exist blablabla
    //if exist
    ShowPlayerDialog(playerid, DIALOG_REG, DIALOG_STYLE_PASSWORD, "Register", "Type your password babalabalabal", "OK", "Kick Meeh!");
    //if not exist
    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "Type your password babalabalabal", "OK", "Bye!");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_REG)
    {
        if(!response) Kick(playerid);
       
        //Put your register code
    }
    if(dialogid == DIALOG_LOG)
    {
        if(!response) Kick(playerid);
       
        //Put your login code
    }
    return 0;
}
Reply


Messages In This Thread
transferring register and login in dialogs? - by CBCandyBoy - 11.06.2014, 05:33
Re: transferring register and login in dialogs? - by RenovanZ - 11.06.2014, 06:01
Re: transferring register and login in dialogs? - by CBCandyBoy - 11.06.2014, 07:03
Re: transferring register and login in dialogs? - by xGamerFx - 11.06.2014, 10:53
Re: transferring register and login in dialogs? - by CBCandyBoy - 11.06.2014, 14:11
Re: transferring register and login in dialogs? - by xGamerFx - 11.06.2014, 15:06

Forum Jump:


Users browsing this thread: 3 Guest(s)