Register 'n Login - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Register 'n Login (
/showthread.php?tid=181798)
Register 'n Login -
SampStunta - 07.10.2010
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!
Re: Register 'n Login -
[UG]Scripter - 07.10.2010
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.
Re: Register 'n Login -
LarzI - 07.10.2010
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.
Re: Register 'n Login -
SampStunta - 07.10.2010
Thanks