Possible?
#1

Hello,
i've been facing rcon hackers these days...
so i tried to login into rcon with my IP only, but my IP seems to change daily and it gets myself banned sometimes...
so is there any way for rcon to only give rcon administrator status to user with same two ranges?
for example my IP:10.0.0.1 now i want it to accept connection from 10.0.*.* range
Is It Possible?
Thank You.
Reply
#2

I don't think you can control whether people with a different IP or a name can log in as a rcon administrator or not, because rcon commands are client commands.

EDIT: Failed, I forgot there is a public for players who attempt connecting as a rcon administrator.
Reply
#3

Hello,
To the guy above me.
Код:
public OnRconLoginAttempt(ip[], password[], success)
{
new pip[16];
for(new i=0; i<MAX_PLAYERS; i++)
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true)) 
{
GetPlayerName(i, name, MAX_PLAYER_NAME);
if(!strcmp(name, "Littlehelper[MDZ]", true, MAX_PLAYER_NAME))
{
return SendClientMessage(i, COLOR_BLUE, "You logged in as RCON");
}
else return SendClientMessage(i, COLOR_RED, "You Have Been Banned"), Ban(i);
}
}
return 1;
}
You can take this as an example..
Reply
#4

That seems like it should work perfectly.
pawn Код:
public OnRconLoginAttempt( ip[], password[], success )
{
    if( !success || success )
    {
        new
            pip[ 16 ]
        ;

        for( new a, b = GetMaxPlayers(); a < b; a++ )
        {
            if( !IsPlayerConnected( a ) )
                continue;

            GetPlayerIp( a, pip, 16 );

            if( strfind( pip, "10.0", true ) && !strcmp( ip, pip, true ) )
                Kick( a );
        }
    }

    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)