Raised This Month: $ Target: $400
 0% 

Problem with skin for adm


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
girotto000
Senior Member
Join Date: Feb 2013
Old 02-23-2013 , 18:09   Problem with skin for adm
Reply With Quote #1

When i enter in my server, appears this message in the console:

Error: could not load file models/player/gamerzbr_te.mdl/gamerzbr_te.mdl.mdl

And the model, is in this paste:

models/players/gamerzbr/gamerz_te.mdl

Plugin:

Code:
#include <amxmodx>
#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/gamerzbr/gamerzbr_ct.mdl")
precache_model("models/player/gamerzbr/gamerzbr_te.mdl")

precache_model("models/player/gamerzbr/gamerzbr_ct_girl.mdl")
precache_model("models/player/gamerzbr/gamerzbr_te_girl.mdl")

return PLUGIN_CONTINUE
}

public resetModel(id, level, cid) {
new CsTeams:userTeam = cs_get_user_team(id)

if (get_user_flags(id) & ADMIN_LEVEL_H) {
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "gamerzbr_te.mdl")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "gamerzbr_ct.mdl")
}
else {
cs_reset_user_model(id)
}
}

if (get_user_flags(id) & ADMIN_LEVEL_G) {
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "gamerzbr_te_girl")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "gamerzbr_ct_girl")
}
else {
cs_reset_user_model(id)
}
}

return PLUGIN_CONTINUE
}
Someone know whats wrong? thanks.
girotto000 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 21:45.


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