SA-MP Forums Archive
RCON - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: RCON (/showthread.php?tid=511739)



RCON - AroseKhanNiazi - 07.05.2014

How To remove the rcon system completely from our server like Crazybob Cops and robbers did
and also help me here
https://sampforum.blast.hk/showthread.php?tid=511647


Re: RCON - Roel - 07.05.2014

Add 'rcon 0' to your server.cfg file to block remote rcon access.


Re: RCON - AroseKhanNiazi - 07.05.2014

Quote:
Originally Posted by Roel
Посмотреть сообщение
Add 'rcon 0' to your server.cfg file to block remote rcon access.
tried won't work


Re: RCON - Roel - 07.05.2014

You can still use it inside the console, and inside the game itself.
It only blocks connections from remote IP addresses.
You can block in ingame by kicking the one that is trying to login at;
OnRconLoginAttempt


Re: RCON - AroseKhanNiazi - 07.05.2014

yeah but the crazybobs server does not have an rcon system and no kicking too


Re: RCON - Roel - 07.05.2014

Well, im cant test anything, but you can try returning 0 on OnRconLoginAttempt.
Otherwise you may can try adding a custom command thats called rcon, and return 0 on that, but I don't think that will work.


Re: RCON - AroseKhanNiazi - 07.05.2014

edit both ways didn't work


Re: RCON - AroseKhanNiazi - 07.05.2014

ok +rep


Re: RCON - Roel - 07.05.2014

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
Its impossible to remove the remote console.

Maybe what they are doing is setting it to rcon 0 to avoid other apps.
And using this:

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success)
    {
        new playersIP[17], Message[128+MAX_PLAYER_NAME];
        foreach (new playerid : Player)
        {
            GetPlayerIp(playerid, playersIP, 17);
            if(!strcmp(ip, playersIP))
            {
                break;
            }

            return 0;
        }
    }
    return 1;
}
This is what I said, returning 0 on OnRconLoginAttempt.
But it seems you better explained it ;P


Re: RCON - AroseKhanNiazi - 07.05.2014

thanks u too