Problem with 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: Problem with login (
/showthread.php?tid=187178)
Problem with login -
Face9000 - 01.11.2010
Hai all,i've a big problem in my server.
If i try to join with another registered nick,i can login with no problems...
Why?
I've autologin by IP comparison,how to disable and let player inserting the password?
Код:
if(dini_Exists(udb_encode(name)))
{
dini_Set(udb_encode(name), "IP", IP);
}
if( logged[playerid] == 0 )
{
if(dini_Exists(udb_encode(playername)))
{
if(logged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_RED, "Your account has been detected in our database. Use /login to log in!");
ShowPlayerDialog(playerid,60,DIALOG_STYLE_INPUT,"Login","Welcome to the server\n\nPlease enter your server password\n\nEnter a password:","Login","Quit");
}
}
else if(!dini_Exists(udb_encode(playername)))
{
SendClientMessage(playerid, COLOR_RED, "You are not registered! Use /register");
}
}
return 1;
}
Re: Problem with login -
Face9000 - 01.11.2010
BUMP...guys it's important...
Re: Problem with login -
Face9000 - 02.11.2010
Fixed.
Mod can close this topic.