- 听众
- 收听
- 积分
- 22
- 主题
- 回帖
- 0
- 精华
注册时间2008-11-5
最后登录1970-1-1
该用户从未签到
|
楼主 |
发表于 2011-10-14 08:59:22
|
显示全部楼层
这样行吧?还有这个意思是啥
public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike")
register_event("ResetHUD", "resetModel", "b")
return PLUGIN_CONTINUE
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/vip/vip_Haker.mdl")
precache_model("models/player/vip/vip.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, "vip.mdl")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "vip_Haker.mdl")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}
|
|