Entrance without password?! -
Otakus - 07.03.2014
pawn Код:
if(dialogid == LOGIN_DIALOG)
{
if(!response) return Kick(playerid);
if(strcmp(inputtext, PlayerInfo[playerid][Parola], true) == 0)
{
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ], PlayerInfo[playerid][pAngle], 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
new string[64];
TogglePlayerSpectating(playerid, 0);
format(string, sizeof(string), "{8080FF}Reloaded: {FFFFFF}Welcome %s!", GetName(playerid));
SendClientMessage(playerid, -1, string);
}
else
{
if(IncercareLogin[playerid] == 0)
{
ShowPlayerDialog(playerid, LOGIN_DIALOG, DIALOG_STYLE_PASSWORD, " ", "{99CCFF}Parola este gresita , ai {FF0033}5 {99CCFF}incercari ramase!", "Login", "Disconnect");
IncercareLogin[playerid] += 1;
}
else if(IncercareLogin[playerid] == 1)
{
ShowPlayerDialog(playerid, LOGIN_DIALOG, DIALOG_STYLE_PASSWORD, " ", "{99CCFF}Parola este gresita , ai {FF0033}4 {99CCFF}incercari ramase!", "Login", "Disconnect");
IncercareLogin[playerid] += 1;
}
else if(IncercareLogin[playerid] == 2)
{
ShowPlayerDialog(playerid, LOGIN_DIALOG, DIALOG_STYLE_PASSWORD, " ", "{99CCFF}Parola este gresita , ai {FF0033}3 {99CCFF}incercari ramase!", "Login", "Disconnect");
IncercareLogin[playerid] += 1;
}
else if(IncercareLogin[playerid] == 3)
{
ShowPlayerDialog(playerid, LOGIN_DIALOG, DIALOG_STYLE_PASSWORD, " ", "{99CCFF}Parola este gresita , ai {FF0033}2 {99CCFF}incercari ramase!", "Login", "Disconnect");
IncercareLogin[playerid] += 1;
}
else if(IncercareLogin[playerid] == 4)
{
ShowPlayerDialog(playerid, LOGIN_DIALOG, DIALOG_STYLE_PASSWORD, " ", "{99CCFF}Parola este gresita , ai {FF0033}1 {99CCFF}incercare ramase!", "Login", "Disconnect");
IncercareLogin[playerid] += 1;
}
else if(IncercareLogin[playerid] == 5)
{
ShowPlayerDialog(playerid, 1001, DIALOG_STYLE_MSGBOX, " ", "{99CCFF}Parola scrisa de tine nu e corecta!\nTocmai ai primit {FF0033}kick{99CCFF}, la revedere.", "Inchide", "");
IncercareLogin[playerid] = 0;
SetTimerEx("KickPublic", 1000, false, "d", playerid);
}
}
How can i make if you don't type nothing on box to get IncercareLogin == 1 ?
AW: Entrance without password?! -
Nero_3D - 07.03.2014
Explain in more depth
You said if the typed something you want to get IncercareLogin to be 1?
Re: Entrance without password?! -
XK - 07.03.2014
You mean you dont want the player to put password to login?
Re: Entrance without password?! -
Otakus - 07.03.2014
BUG : If an player just don't type nothing in the dialog , and press login they enter on account.
i want if the player don't type nothing on box, to get an SCM For example!
AW: Entrance without password?! -
Nero_3D - 07.03.2014
You are using a double negation but I think you just want that
pawn Код:
//
if(!response) return Kick(playerid);
if(strlen(inputtext) < 6)
return ShowPlayerDialog(playerid, LOGIN_DIALOG, DIALOG_STYLE_PASSWORD, " ", "{FF0000}The password needs to be at least 6 characters long!", "Login", "Disconnect");
if(strcmp(inputtext, PlayerInfo[playerid][Parola], true) == 0)
{
//
Re: Entrance without password?! -
Otakus - 07.03.2014
Still don't work , guys mine problems is : When player are in the stage when is need to type the password , if him just press ENTER without type the password , automatically login in the account , i want if him don't type nothing to get auto kicked
Re: Entrance without password?! -
Otakus - 07.03.2014
Done , fixed by me , if somebody can please delete the post.