09.02.2015, 00:41
Quote:
Change your code where it starts with ELSE with this
pawn Код:
|
PHP код:
else
{
PlayerInfo[playerid][FailLogin]++;
SendClientMessage(playerid,red,"ACCOUNT: Login failed! Incorrect Password");
printf("LOGIN: %s has failed to login, Wrong password (%s) Attempt (%d)", PlayerName2(playerid), inputtext, PlayerInfo[playerid][FailLogin] );
if(PlayerInfo[playerid][FailLogin] == MAX_FAIL_LOGINS)
{
format(string, sizeof(string), "%s has been kicked (Failed Logins)", PlayerName2(playerid) );
SendClientMessageToAll(grey, string);
print(string);
Kick(playerid);
}
return ShowPlayerDialog(playerid, 9048, DIALOG_STYLE_INPUT, "{FF0000}Login", dialogstr, "Login", "Cancel");
}
}