yaokkyao
发表于 2011-5-31 10:45:34
#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_te/OP_te.mdl")
precache_model("models/player/VIP_ct/VIP_ct.mdl")
precache_model("models/player/VIP_te/VIP_te.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
if (!is_user_connected(id)) return PLUGIN_CONTINUE
new flags = get_user_flags(id)
new CsTeams:userTeam = cs_get_user_team(id)
if (flags ADMIN_IMMUNITY){
if (userTeam == CS_TEAM_T)
cs_set_user_model(id, "OP_te")
else if(userTeam == CS_TEAM_CT)
cs_set_user_model(id, "OP_ct")
else
cs_reset_user_model(id)
}else if (flags ADMIN_RESERVATION) {
if (userTeam == CS_TEAM_T)
cs_set_user_model(id, "VIP_te")
else if(userTeam == CS_TEAM_CT)
cs_set_user_model(id, "VIP_ct")
else
cs_reset_user_model(id)
}
return PLUGIN_CONTINUE
}
断can雪
发表于 2011-6-4 12:27:42
看看那是什么用的
Caiiy
发表于 2011-7-6 15:39:54
没说明的不要
sjd0011
发表于 2011-8-18 19:14:23
没说明就回帖等升级
wk703
发表于 2011-8-20 16:51:17
没说明就回帖等升级
dingleial521
发表于 2011-8-22 01:45:11
什么东西啊 ,说详细点啊·
87737072
发表于 2011-8-22 16:36:52
没说明就回帖等升级
673734294
发表于 2011-8-29 18:03:13
什么东西
chwafz
发表于 2011-8-30 08:51:01
如果有源码就上一个 谢谢
ckn911
发表于 2011-12-8 16:27:32
。。。没图。不知道说什么的