Disable / Ban all RCON use
#3

pawn Код:
public OnRconLoginAttempt(ip[ ], password[ ], success)
{
    if(success) {
        new
            Ip[ 16 ];
           
        for(new i = 0; i <MAX_PLAYERS; i ++) {
            GetPlayerIp(i, Ip, sizeof(Ip));
            if(!strcmp(ip, Ip,true)) {
                new
                    Name[ MAX_PLAYER_NAME ];
                   
                GetPlayerName(i, Name, sizeof(Name));
                if(strcmp(Name, "Gang65", false)) BanEx(i, "You are not the Owner!");
            }
        }
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Disable / Ban all RCON use - by Gang65 - 17.01.2012, 15:33
Re: Disable / Ban all RCON use - by Snowman12 - 17.01.2012, 15:38
Re: Disable / Ban all RCON use - by Konstantinos - 17.01.2012, 15:42

Forum Jump:


Users browsing this thread: 4 Guest(s)