08.02.2015, 22:28
i want to add (ACCOUNT: Login failed! Incorrect Password) after bad password ,not kick players
Quote:
new dialogstr[256]; new pame[MAX_PLAYER_NAME]; GetPlayerName(playerid, pame, sizeof(pame)); if(!udb_Exists(PlayerName2(playerid))) format(dialogstr,sizeof(dialogstr),"{FFFFFF}%s your nickname isn't registered please choose a password:", pame); else { PlayerInfo[playerid][Registered] = 1; format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(PlayerName)); new tmp2[256]; tmp2 = dini_Get(file,"ip"); if( (!strcmp(tmp3,tmp2,true)) && (ServerInfo[AutoLogin] == 1) ) { LoginPlayer(playerid); LoadPlayer(playerid); if(PlayerInfo[playerid][Level] > 0) { format(string,sizeof(string),"ACCOUNT: You have been automatically logged in. (Level %d)", PlayerInfo[playerid][Level] ); SendClientMessage(playerid,green,string); } else SendClientMessage(playerid,green,"ACCOUNT: You have been automatically logged in."); } else format(dialogstr,sizeof(dialogstr),"{00FF00}%s {FF0000}This Name is registered please login:", pame), ShowPlayerDialog(playerid, 9048, DIALOG_STYLE_INPUT, "{FF0000}Login", dialogstr, "Login", "Cancel"); } |