Raised This Month: $ Target: $400
 0% 

Admin Models edit


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 03-29-2009 , 12:31   Re: Admin Models edit
Reply With Quote #2

try with this
PHP Code:
#include <amxmodx> 
#include <fakemeta>
#include <cstrike> 

new const mdl_admin_kick[][] = { "models/player/admin_kick/admin_kick.mdl" }
new const 
mdl_admin_ban[][] = { "models/player/admin_ban/admin_ban.mdl" }
new const 
mdl_admin_slay[][] = { "models/player/admin_slay/admin_slay.mdl" }
new const 
mdl_admin_rcon[][] = { "models/player/admin_rcon/admin_rcon.mdl" }

public 
plugin_init()

    
register_plugin("AMX Admin Model""1.1.1""whitemike"
    
register_event("ResetHUD""resetModel""b"
    return 
PLUGIN_CONTINUE


public 
plugin_precache()

    
engfunc(EngFunc_PrecacheModelmdl_admin_kick)
    
engfunc(EngFunc_PrecacheModelmdl_admin_ban)
    
engfunc(EngFunc_PrecacheModelmdl_admin_slay)
    
engfunc(EngFunc_PrecacheModelmdl_admin_rcon)
    
    return 
PLUGIN_CONTINUE 


public 
resetModel(idlevelcid) { 
    
    if (
get_user_flags(id) & ADMIN_KICK) { 
        
cs_set_user_model(id"mdl_admin_kick"
    } 
    else if(
get_user_flags(id) & ADMIN_BAN
    { 
        
cs_set_user_model(id"mdl_admin_ban"
    } 
    else if(
get_user_flags(id) & ADMIN_SLAY
    { 
        
cs_set_user_model(id"mdl_admin_slay"
    } 
    else if(
get_user_flags(id) & ADMIN_RCON
    { 
        
cs_set_user_model(id"mdl_admin_rcon"
    } 
    else 
    { 
        
cs_reset_user_model(id
    } 
    
    return 
PLUGIN_CONTINUE 

__________________
alan_el_more is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode