01.11.2010, 15:55
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 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; }