Lux Admin - Registe/Login (OnPlayerConnect)
#5

Quote:
Originally Posted by jessejanssen
Посмотреть сообщение
If the register/login automatically appears at spawn, you should just move the code from OnPlayerSpawn to OnPlayerConnect ( Most likely just the check if the player is registered and the first login/register dialog with some if statements. )

Jesse
Yea i did exactly what you said but it shows the login box on connect but when i login no message like how it shows after logging in that you have been logged in bla bla it doesnt show and i'm admin there so i can't even see me in /admins and iam not logged i need /login again

_____________________________
pawn Код:
//==============================================================================
// Request Register
//==============================================================================
    if(AccInfo[playerid][Registered] == 0 && ServerInfo[MustRegister] == 1)
    {
        #if USE_DIALOGS == true
        new rstring[256];
        format(rstring,256,"Welcome to the '%s'\n\nAccount '%s' is not registred!\n\nEnter the password to Register your Account:",GetServerHostName(),pName(playerid));
        ShowPlayerDialog(playerid,DIALOGID+66,DIALOG_STYLE_INPUT,"Register Account",rstring,"Register","Quit");
        #endif
        return 1;
    }
//==============================================================================
// Request Login
//==============================================================================
    if(ServerInfo[MustLogin] == 1 && AccInfo[playerid][Registered] == 1 && AccInfo[playerid][LoggedIn] == 0)
    {
        #if USE_DIALOGS == true
        new lstring[256];
        format(lstring,256,"Account '%s 'is Registered!\n If you forgot your password post reply in our forum\n\n Login to access your Account:",pName(playerid));
        ShowPlayerDialog(playerid,DIALOGID+67,DIALOG_STYLE_INPUT,"Login Account",lstring,"Login", "");
        #endif
        return 1;
    }
Reply


Messages In This Thread
Lux Admin - Registe/Login (OnPlayerConnect) - by ProdrifterX - 24.10.2012, 18:55
Re: Lux Admin - Registe/Login (OnPlayerConnect) - by ProdrifterX - 26.10.2012, 07:58
Re: Lux Admin - Registe/Login (OnPlayerConnect) - by JaKe Elite - 26.10.2012, 07:59
Re: Lux Admin - Registe/Login (OnPlayerConnect) - by jessejanssen - 26.10.2012, 08:02
Re: Lux Admin - Registe/Login (OnPlayerConnect) - by ProdrifterX - 26.10.2012, 08:22

Forum Jump:


Users browsing this thread: 1 Guest(s)