Raised This Month: $ Target: $400
 0% 

Problem with skin for adm


Post New Thread Reply   
 
Thread Tools Display Modes
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
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 02-23-2013 , 18:55   Re: Problem with skin for adm
Reply With Quote #2

Quote:
Originally Posted by girotto000 View Post
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.
You got one .mdl to much
Error: could not load file models/player/gamerzbr_te.mdl/gamerzbr_te.mdl.mdl
change the name in You folder to
Error: could not load file models/player/gamerzbr_te.mdl/gamerzbr_te.mdl
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
girotto000
Senior Member
Join Date: Feb 2013
Old 02-25-2013 , 12:05   Re: Problem with skin for adm
Reply With Quote #3

Solved!
girotto000 is offline
Reply



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