|
楼主 |
发表于 2008-10-31 21:15:21
|
显示全部楼层
来自 中国–重庆–重庆–渝北区
回复: 请教热心编辑一下AMXX。
哦。。我再发次吧。。 就是下面的哪个插件用不起。希望帮我改改
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("Admin Model", "1.0", "DT")
register_event("ResetHUD", "resetModel", "b")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/vip/vip.mdl")
precache_model("models/player/vip/vip.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_IMMUNITY) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "vip")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "vip")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
} |
|