|
发表于 2005-10-29 21:37:33
|
显示全部楼层
|阅读模式
来自 中国–广东–广州–番禺区
public plugin_init() {
register_plugin("AMX Admin Model", "1.1.2", "whitemike | C.H.M & terranwj")
register_event("ResetHUD", "resetModel", "b")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/admin_ct/admin_ct.mdl")
precache_model("models/player/admin_te/admin_te.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id) {
if (get_user_flags(id) & ADMIN_KICK) {
new userTeam = get_user_team(id)
if (userTeam == 1) {
CS_SetModel(id, "admin_te")
}
else if(userTeam == 2) {
CS_SetModel(id, "admin_ct")
}
else {
CS_ClearModel(id)
}
}
return PLUGIN_CONTINUE
}
谢谢了~不知道是不是有地方错了,老是译不了,麻烦高手帮我翻译一下!谢谢! |
|