27.12.2014, 12:29
Код:
public OnRconLoginAttempt(ip[], password[], success) { if(!success) { for(new i = 0; i < MAX_PLAYERS; i++) { if(strcmp(ip, PlayerIp(i), true) == 0) { SendClientMessage(i,COLOR_DEAD,"You Have Been Kicked Due To Attempting Wrong Rcon Password."); KickEx(i); return 0; // instead of break; } } } else { for(new i = 0; i < MAX_PLAYERS; i++) { if(strcmp(ip, PlayerIp(i), true) == 0) { SendClientMessage(i, COLOR_ADMIN, "Please Enter Second Rcon Password."); new str1[120]; format(str1,sizeof(str1),"%s(%d) Has Been Logged In As First Rcon Admin.", PlayerInfo[i][pName], i); ShowPlayerDialog(i ,SECOND_RCON_DIALOG ,DIALOG_STYLE_PASSWORD,"{FFFFFF}Second Rcon Password","Admin MAXIMUM Security.\nPlease Enter Second Rcon Password To Become Complete Rcon Admin\nOtherwise Get Kicked","login","kick"); break; } } } return 1; }