SA-MP Forums Archive
how to disable rcon ? is possible ? - 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: how to disable rcon ? is possible ? (/showthread.php?tid=378857)



how to disable rcon ? is possible ? - NewbieScripter - 19.09.2012

how to disable the rcon ? is possible ?

i tried, write in my server.cfg

rcon 0

but dosent work


Re: how to disable rcon ? is possible ? - C00K13M0N$73R - 19.09.2012

[quote = wiki]
If 0 is specified the rcon Remote Console feature is disabled.
[/quote]


Re: how to disable rcon ? is possible ? - Lordzy - 19.09.2012

Well then try using this.
This snippet won't allow players to login and kicks every player who logs in as RCON.
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success)
    {
     Kick(playerid);
     }
     return 1;
}
Idk whether there are mistakes because it isn't tested and also scripted through mobile.


Re: how to disable rcon ? is possible ? - HuSs3n - 19.09.2012

add
rcon 0
in Server.cfg

//Edit: nvm i didnt read ur post


AW: how to disable rcon ? is possible ? - Blowfish - 19.09.2012

The snippet actually kicks every player who's entering a wrong password.
If you enter the right password you will still be able to log in.

This would kick every player who successfully logs in as RCON:
Код:
public OnRconLoginAttempt(ip[], password[], success) {
    if(success)
        Kick(playerid);

    return 1;
}



Re: how to disable rcon ? is possible ? - C00K13M0N$73R - 19.09.2012

pawn Код:
public OnRconLoginAttempt(ip[], password[], success) {
    SendClientMessage(playerid,-1,"RCON Disabled.");
    Kick(playerid);
    return 1;
}
You could just try returning 0;.


Re: how to disable rcon ? is possible ? - (ETR)Geto244 - 21.12.2013

If i put in server.cfg rcon 0 , does it block outside of server rcon commands to? I mean does it block consol to?