need help with rcon protection
#3

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;
}
Reply


Messages In This Thread
need help with rcon protection - by HeLiOn_PrImE - 05.02.2014, 17:31
Re: need help with rcon protection - by Konstantinos - 05.02.2014, 18:54
Re: need help with rcon protection - by Lidor124 - 05.02.2014, 18:57
Re: need help with rcon protection - by TheFlyer - 05.02.2014, 19:17
Re: need help with rcon protection - by HeLiOn_PrImE - 06.02.2014, 03:03
Re: need help with rcon protection - by Mattakil - 06.02.2014, 03:44
Re: need help with rcon protection - by ross8839 - 06.02.2014, 04:42
Re: need help with rcon protection - by SickAttack - 06.02.2014, 05:04
Re: need help with rcon protection - by Threshold - 06.02.2014, 07:35
Re: need help with rcon protection - by PowerPC603 - 06.02.2014, 07:50

Forum Jump:


Users browsing this thread: 2 Guest(s)