07.05.2015, 08:17
Try this.
Код:
if(LoginWarns[playerid] == 0) { ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit"); } else { if(LoginWarns[playerid] == 5) // login attempts set as you want { SendClientMessage(playerid, 0xFF0000AA, "You have been kicked out of the server, failed logged in!"); return Kick(playerid); } else { format(warnmsg, sizeof(warnmsg), "Incorrect Password! %d Attempt(s) Of Logging Left Before Being Kicked!",LoginWarns[playerid]); SendClientMessage(playerid, 0xFF0000AA, warnmsg); } } ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit"); return 1;