Name: Master Lock
Short description: Locks all admin commands with one master command
Author: fri (http://soldatcentral.com/index.php?page=profile&u=24)
Compile test: passed
Core version: 2.6.3
Hosted by: Soldat Central - http://soldatcentral.com/ (http://soldatcentral.com/)
Full description:
This script allows any admin to completely block administrative commands for all players, so they can't /kick or /ban anyone, change game password, modify time limit, etc. The only command that would work is the master one (default: /masterlock, I suggest changing it to something 'weird').
Of course it will work only against admins that don't have the access to script files.
'How do I block other scripts?'
If you want to make it affect other scripts, you have to put this code:
if CrossFunc([], 'MasterLock.Lock') = true then exit;
at the very beginning of OnCommand function in the specified script, so it will look like this:
function OnCommand(ID: Byte; Text: string): boolean;
begin
if CrossFunc([], 'MasterLock.Lock') = true then exit;
{ rest of the original script }
end;
thanks to DorkeyDear for help with CrossFunc.
(http://soldatcentral.com/images/download.gif) (http://soldatcentral.com/dl.php?id=58&act=1)
(Size 807 B)
- http://soldatcentral.com/index.php?page=script&f=58 -
** Script hosted by Soldat Central (http://soldatcentral.com/index.php?page=script&f=58)! Please visit the author's script page (http://soldatcentral.com/index.php?page=script&f=58) and rate this script **