Problem OnRconLoginAttempt
#1

Hello guys, I wanted to ask how do I create an anti rcon login.
Basically, I want to make sure that only those who can log rcon ip 192.168.1.2, otherwise, if a rcon logs correctly, but it has the ip 192.168.1.2 is autobanned. Help me please D:
Reply
#2

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(success && strcmp(ip,"192.168.1.2",true))
    {
        new IP[20];
        for(new i=0;i<MAX_PLAYERS;i++)
        {
            GetPlayerIp(i,IP,20);
            if(strcmp(IP,ip,true))
            {
                BanEx(i, "Breaking RCON Password");
                break;
            }
        }
    }
    return 1;
}
Should work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)