Quote:
Originally Posted by Moody92
I wonder if you can make
the admins ( Without immunity ) can't ban/kick/slap another admins ( Without immunity )
|
try this
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Block Admins Without Immunity"
#define VERSION "1.0"
#define AUTHOR "[R]ak"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_ban", "Check")
register_concmd("amx_kick", "Check")
register_concmd("amx_slap", "Check")
register_concmd("amx_slay", "Check")
}
public Check(id) {
new Victim[32]
read_argv(1, Victim, 31)
new player = cmd_target(id, Victim, 8)
if(!player)
return PLUGIN_HANDLED
if(get_user_flags(id) & ADMIN_IMMUNITY || !is_user_admin(player))
return PLUGIN_CONTINUE
return PLUGIN_HANDLED
}
EDIT: put this plugin first in plugin.ini
__________________