script loading question
#1

hi,
i have a server, with three admins, but i don't want that the other admins can load, unload or reload any scripts.
if they load, unload or reload any scripts, i want that they get a kick.
i don't want a special ranking script, so i tried it with OnRconCommand, but that don't support playerid..
Does someone knows how i can do this, WITHOUT a ranking script or something like that?

ps. sorry for the bad english
Reply
#2

u can't adjust rcon commands just use a custom admin system like LuxAdmin or ladmin
Reply
#3

Quote:
Originally Posted by gangstajoe
hi,
i have a server, with three admins, but i don't want that the other admins can load, unload or reload any scripts.
if they load, unload or reload any scripts, i want that they get a kick.
i don't want a special ranking script, so i tried it with OnRconCommand, but that don't support playerid..
Does someone knows how i can do this, WITHOUT a ranking script or something like that?

ps. sorry for the bad english
To be honest you should use a ranking script why would you care what they can load/unload the could easily do /rcon exit and shut the server down you shouldn't give out your RCON pass.
Reply
#4

Deactivate the (un)loading of filterscripts in onrconcommand.

pawn Код:
public OnRconCommand(cmd[])
{
    if(strcmp(cmd, "loadfs", true)==0)return 0;
    if(strcmp(cmd, "unloadfs", true)==0)return 0;
    if(strcmp(cmd, "reloadfs", true)==0)return 0;
    else return 1;
}
The rest you solve by putting the commands into OnPlayerCommand, where they will be able to check the IP/name/etc...

Need more help? If not, enjoy.

#Edit#: Correct me if i'm wrong...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)