Register 'n Login
#1

Could someone give me the 2 scripts for a dialog box to pop up on your connection where you MUST register and MUST login?

Or atleast tell me how to make both of them?

Thanks!
Reply
#2

Quote:
Originally Posted by SampStunta
Посмотреть сообщение
Could someone give me the 2 scripts for a dialog box to pop up on your connection where you MUST register and MUST login?

Or atleast tell me how to make both of them?

Thanks!
If you own a Gamning Community, You should know how to do this.....

Also, use this: http://forum.sa-mp.com/search.php

There's about 10 different Tutorials on it.
Reply
#3

Do something like this (this is what I do in my script)

pawn Код:
if(  !yourLogInCheck[ playerid ] )
    {
        if( dini_Exists( pathToPlayerFile[ playerid ] )) //I'm using dini, so here I check if the file is existing, aka the player is registered
            return ShowPlayerDialog( playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login", "Enter your password to continue", "login", "cancel" ), false;
        else
            return ShowPlayerDialog( playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Register", "Enter the password you want for your user", "register", "cancel" ), false;
    }
Then do the login/register stuff in your OnDialogResponse callback

By showing the dialogs before requesting class, you won't even see the class selection screen before you register/login.
Reply
#4

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)