SA-MP Forums Archive
script loading question - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: script loading question (/showthread.php?tid=143839)



script loading question - gangstajoe - 24.04.2010

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


Re: script loading question - aircombat - 24.04.2010

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


Re: script loading question - shady91 - 24.04.2010

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.


Re: script loading question - DeathOnaStick - 24.04.2010

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...