Raised This Month: $ Target: $400
 0% 

Admin Models edit


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bulqr4eto
New Member
Join Date: Mar 2009
Old 03-29-2009 , 12:23   Admin Models edit
Reply With Quote #1

Ok I want to ask how to make the code below to know the players from what Teams are they and to give them theyr skin/model and to ident them from theyr flags too. Thanks

Code:
#include <amxmodx> 
#include <amxmisc> 
#include <cstrike> 

public plugin_init() { 
    register_plugin("AMX Admin Model", "1.1.1", "whitemike") 
    register_event("ResetHUD", "resetModel", "b") 
    return PLUGIN_CONTINUE  
} 

public plugin_precache() { 
    precache_model("models/player/admin_kick/admin_kick.mdl") 
    precache_model("models/player/admin_ban/admin_ban.mdl") 
    precache_model("models/player/admin_slay/admin_slay.mdl") 
    precache_model("models/player/admin_rcon/admin_rcon.mdl") 

    return PLUGIN_CONTINUE 
} 

public resetModel(id, level, cid) { 

    if (get_user_flags(id) & ADMIN_KICK) { 
        cs_set_user_model(id, "admin_kick") 
    } 
    else if(get_user_flags(id) & ADMIN_BAN) 
    { 
        cs_set_user_model(id, "admin_ban") 
    } 
    else if(get_user_flags(id) & ADMIN_SLAY) 
    { 
        cs_set_user_model(id, "admin_slay") 
    } 
    else if(get_user_flags(id) & ADMIN_RCON) 
    { 
        cs_set_user_model(id, "admin_rcon") 
    } 
    else 
    { 
        cs_reset_user_model(id) 
    } 

    return PLUGIN_CONTINUE 
} 

Bulqr4eto 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