What should I do ?
#4

rcon 0 = no password

anyhow, if they are trying from server or spamming rcon pw, simply

PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!
success//If the password was incorrect
    
{
        
printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ippassword);
        new 
pip[16];
        foreach(
Playeri//Loop through all players
        
{
            
GetPlayerIp(ipipsizeof(pip));
            if(!
strcmp(ippiptrue)) //If a player's IP is the IP that failed the login
            
{
                
//SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message, but if its brute its not needed..
                
Ban(i); //They are now banned.
            
}
        }
    }
    return 
1;

Reply


Messages In This Thread
What should I do ? - by Boyka96 - 25.03.2015, 03:45
Re: What should I do ? - by KayJ - 25.03.2015, 03:47
Re: What should I do ? - by Boyka96 - 25.03.2015, 03:49
Re: What should I do ? - by DeitY - 25.03.2015, 06:49
Re: What should I do ? - by Boyka96 - 25.03.2015, 23:46
Re: What should I do ? - by Infinity - 26.03.2015, 07:37
Re: What should I do ? - by Sithis - 26.03.2015, 11:12
Re: What should I do ? - by CalvinC - 26.03.2015, 11:31
Re: What should I do ? - by Sithis - 26.03.2015, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)