Exceptions for admins with rcon
How to make functions so immunity on target will not work if admin with rcon issues the command on him/her?
For example - banning. Immunity admins can't be banned by other admins, but i'd want admins with rcon (l access flag) ban even if target has immunity. |
Re: Exceptions for admins with rcon
Well, wherever it checks for immunity, e.g.
PHP Code:
PHP Code:
|
Re: Exceptions for admins with rcon
Actually, I would recommend modifying cmd_target() in amx_misc.inc to ignore immunity if admin has rcon flag. Then all you have to do is recompile all your plugins (which is easy) and voila.
I am quite positive that I've done this before somewhere. |
Re: Exceptions for admins with rcon
Quote:
PHP Code:
PHP Code:
But that would only work if you compile plugins yourself, not if you want to release the sma/use the webcompiler. Also, only if you were using cmd_target and not some other way of checking admin flags. |
Re: Exceptions for admins with rcon
Thanks ;).
|
| All times are GMT -4. The time now is 02:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.