Lux Admin - Registe/Login (OnPlayerConnect)
#1

Hey Everyone i'm using Lux admin system for my server, does anyone know how to make register|login on player connect luxadmin usually have register\login with dialog and which appears on when player spawn so i want register login box to show on when player connect please can anyone help me thanks :3
Reply
#2

anyone please? :3
Sorry for double
Reply
#3

You've just to /register or /login i think ?? to show them up.
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)