Hi
Trying to solve this model scrypt.
I want to have this model ONLY on LEVEL C. Because on level c I already have prefix for VIP Girls.
I tried to change ADMIN_USER to ADMIN_LEVEL_C but still it show me the model. I tried play with levels it doesnt matter i have access to level A or LEVEL H, still the model is showing up!
I saw post here that someone got fixed this problem by just changing USER to LEVEL_x. NOT in my case.!
THank you guys!!!
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("AMX Admin Girl", "1.0", "whitemike & homorapian")
register_event("ResetHUD", "resetModel", "b")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/ladyadmin/ladyadmin.mdl")
precache_model("models/player/ladyadmin/ladyadmin.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_USER) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "ladyadmin")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "ladyadmin")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}