help (dyaloglogin)
#1

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");
}

Reply


Messages In This Thread
help (dyaloglogin) - by s3ek - 08.02.2015, 22:28
Re: help (dyaloglogin) - by Sime30 - 08.02.2015, 22:56
Re: help (dyaloglogin) - by s3ek - 08.02.2015, 23:11
Re: help (dyaloglogin) - by Sime30 - 08.02.2015, 23:30
Re: help (dyaloglogin) - by s3ek - 09.02.2015, 00:20
Re: help (dyaloglogin) - by Schneider - 09.02.2015, 00:37
Re: help (dyaloglogin) - by s3ek - 09.02.2015, 00:41
Re: help (dyaloglogin) - by Schneider - 09.02.2015, 01:02
Re: help (dyaloglogin) - by s3ek - 09.02.2015, 01:18
Re: help (dyaloglogin) - by Schneider - 09.02.2015, 02:31

Forum Jump:


Users browsing this thread: 2 Guest(s)