Raised This Month: $ Target: $400
 0% 

admin models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AAleaderNik
Member
Join Date: Dec 2005
Old 04-10-2006 , 20:52   admin models
Reply With Quote #1

ok i got the admin models plugin and i wanted to make it so if u have different flags of admin you can have a different model....k now let me make that simpler for example i changed the flag on the code to admin_rcon because im the only admin on my server that has that but all the others have lets say admin_chat so i want them to have there own set of models

i figured if i just copied the process but put admin_chat as the flag that it would work like this

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_ct/gsg9.mdl")
        precache_model("models/player/admin_te/arctic.mdl")
        precache_model("models/player/admin_ct/adminchatCT.mdl")
        precache_model("models/player/admin_te/aadminchatT.mdl")

        return PLUGIN_CONTINUE
}

public resetModel(id, level, cid) {
        if (get_user_flags(id) & ADMIN_RCON) {
                new CsTeams:userTeam = cs_get_user_team(id)
                if (userTeam == CS_TEAM_T) {
                        cs_set_user_model(id, "arctic")
                }
                else if(userTeam == CS_TEAM_CT) {
                        cs_set_user_model(id, "gsg9")
                }
                else {
                        cs_reset_user_model(id)
                }
        if (get_user_flags(id) & ADMIN_CHAT){
                if (userTeam == CS_TEAM_T){
                        cs_set_user_model(id, "adminchatT")
                }
        else if(userTeam == CS_TEAM_CT) {
                        cs_set_user_model(id, "adminchatCT")
        }

        return PLUGIN_CONTINUE
}
but then i got to thinkin wouldnt a conflicted arrise when it trys to give me 2 different models

i know im probably makin no sense or rambling on but finally heres the question

can anybody help me with the code or steer me in the right direction for this
AAleaderNik is offline
AAleaderNik
Member
Join Date: Dec 2005
Old 04-10-2006 , 22:02  
Reply With Quote #2

and now i guess i can see that model im supposed to be but nobody else can i even had to download the skin too and also i cant even see the ct skin
AAleaderNik is offline
Reply


Thread Tools
Display Modes

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 16:41.


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