24.09.2014, 02:43
Quem errar so 1 letra jб e ban
Код:
public OnRconLoginAttempt(ip[], password[], success) { printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password); new pip[16]; new otario[32]; for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players { GetPlayerIp(i, pip, sizeof(pip)); if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login { SendClientMessage(i, 0xFFFFFFFF, "Senha errada"); //Send a message GetPlayerName(i, otario, sizeof(otario)); Ban(i); //They are now banned. } } new str[128]; format(str, sizeof(str), "%s Foi banido por tentar se logar na RCON", otario); SendClientMessageToAll(0xF10000FF, str); } return 1;}