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