View Single Post
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 02-24-2012 , 10:00   Re: Super Admin Update* 2.0
Reply With Quote #10

Quote:
Originally Posted by Moody92 View Post
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(PLUGINVERSIONAUTHOR)
    
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(1Victim31)
    
    new 
player cmd_target(idVictim8)
    
    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
__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 02-24-2012 at 10:01.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak