OP服装问题?
谁帮我看看这个原码,玩家进游戏也下载了模型~可是OP们的服装没有改变,还是和以前一样的!帮忙看看是不是原码有问题:
#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/op_ct/op_ct01.mdl")
precache_model("models/player/op_t/op_t01.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, "op_t01")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "op_ct01")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}
回复: OP服装问题?
帮你改好了注意路径跟文件名字#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/op_ct/op_ct.mdl")
precache_model("models/player/op_t/op_t.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, "op_t")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "op_ct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}
回复: OP服装问题?
谢谢~楼上的朋友~这个是模型名子的问题吗?
好象就改了文件名呢~~~~~~~~
文件夹的名字要和模型名子一样吗?
回复: OP服装问题?
我想是这个问题~~谢谢楼上的~~~
回复: OP服装问题?
文件夹的名字要和模型名字一样就可以了!回复: OP服装问题?
哈哈~~知道了~谢谢Cs.K
回复: OP服装问题?
Post by Cs.K#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike")
register_event("ResetHUD", "resetModel", "t")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/op_ct/op_ct.mdl")
precache_model("models/player/op_t/op_t.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, "op_t")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "op_ct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
} 求助,如果我不想用B的权限改用别的权限怎么弄,比如改用T的权利,,:burn: :burn: :burn: :burn: :burn: :burn:在那里把b改成t但是在服务器里没有用,是和哪个插件冲突,还是编辑方式不对啊求助
回复: OP服装问题?
我和楼上的有同样的疑问
页:
[1]