Lux Admin - Registe/Login (OnPlayerConnect) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Lux Admin - Registe/Login (OnPlayerConnect) (
/showthread.php?tid=387429)
Lux Admin - Registe/Login (OnPlayerConnect) -
ProdrifterX - 24.10.2012
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
Re: Lux Admin - Registe/Login (OnPlayerConnect) -
ProdrifterX - 26.10.2012
anyone please? :3
Sorry for double
Re: Lux Admin - Registe/Login (OnPlayerConnect) -
JaKe Elite - 26.10.2012
You've just to /register or /login i think ?? to show them up.
Re: Lux Admin - Registe/Login (OnPlayerConnect) -
jessejanssen - 26.10.2012
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
Re: Lux Admin - Registe/Login (OnPlayerConnect) -
ProdrifterX - 26.10.2012
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;
}