Okay here is what I want to do but don't know how to do it.
I want to change this plugin so certain flags use different models. We have women in our clan and I want to be able to have chick skins for them and male skins for us. What would I need to do to this plugin to get it to work?
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/admin_ct.mdl")
precache_model("models/player/admin_te/admin_te.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_KICK) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "admin_te")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "admin_ct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}
It seems to me that this code here may work.
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/admin_ct.mdl")
precache_model("models/player/admin_te/admin_te.mdl")
precache_model("models/player/admin_te/admin_girl_ct.mdl")
precache_model("models/player/admin_te/admin_girl_te.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_CUSTOMEFLAGA) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "admin_male_te")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "admin_male_ct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
if (get_user_flags(id) & ADMIN_CUSTOMEFLAGB) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "admin_girl_te")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "admin_girl_ct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}
Would that code work? I haven't tried it yet. But will try it tonight. Please let me know. I need all the help I can get

As for the customeflagA and B what would I need to put?
I want to use these
Code:
; m - custom level A (for additional plugins)
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H