SA-MP Forums Archive
help me to disable the standard admin script - 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: help me to disable the standard admin script (/showthread.php?tid=362186)



help me to disable the standard admin script - [HHT]DRON - 23.07.2012

In server.cfg prescribed "rcon 0", but it does not help to shut down =(
Written in the fashion your admin script, so I do not need rkon.


Re: help me to disable the standard admin script - [IKS]Niko_Hs™ - 23.07.2012

With this script no one can using the rcon, anyone who will put the right password will automatically kicked or banned :
Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success) 
    {
        for(new i=0; i<MAX_PLAYERS; i++)
        {
        SendClientMessage(i, 0xFFFFFFFF, "RCON Disabled!"); 
        Kick(i); //or Ban(i);
        }
    }
    return 1;
}



Re: help me to disable the standard admin script - Dan. - 23.07.2012

Your code only kicks the player when the password is incorrect. If it's correct someone can still log on, but he wants to disable it.


Re: help me to disable the standard admin script - [HHT]DRON - 24.07.2012

I need to completely disable the RCON =)