|
我的服务器是CZ的,我用管理员个性服装amx_adminmodel,为服务器装了VIP个性服装,玩家很喜欢,但安装上这个插件后,服务器频繁踢出全部或大部分玩家,关闭就正常,请高手帮忙解决,谢谢!
插件原码如下(已修改成B权限VIP使用):
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike | C.H.M")
register_event("ResetHUD", "resetModel","be");
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 (!is_user_connected(id)) return PLUGIN_CONTINUE
new flags = get_user_flags(id)
new CsTeams:userTeam = cs_get_user_team(id)
if (flags & ADMIN_RESERVATION){
if (userTeam == CS_TEAM_T)
cs_set_user_model(id, "admin_te")
else if(userTeam == CS_TEAM_CT)
cs_set_user_model(id, "admin_ct")
else
cs_reset_user_model(id)
}
return PLUGIN_CONTINUE
} |
|