06.02.2014, 03:03
Quote:
I will only tell you how to prevent from getting spammed (rcon messages).
Open server.cfg and type: pawn Код:
|
Quote:
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; } |
I already have my secondary password. I want to get rid of it because it can cause lag sometimes. And the log gets big very quick.