05.02.2014, 18:57
You can try my public from my script:
Код:
public OnRconLoginAttempt(ip[], password[], success) { if(!success) { printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password); new pip[16], string[128]; for(new i=0; i<MAX_PLAYERS; i++) { format(string, sizeof(string), "Name: %s | IP: %s | Attempt Password: %s | *FAILED* TO RCON LOGIN", GetPlayerNameEx(i), ip, password); GetPlayerIp(i, pip, sizeof(pip)); if(!strcmp(ip, pip, true)) { SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); FixedKick(i); //They are now banned. } if(success) { format(string, sizeof(string), "Name: %s | IP: %s | Attempt Password: %s | *SUCCESS* TO RCON LOGIN", GetPlayerNameEx(i), ip, password); } Log("logs/rcon.log", string); } } return 1; }