|
发表于 2008-10-16 08:59:51
|
显示全部楼层
来自 中国–湖北–武汉
回复: 关于皮肤插件的一点问题
以下是我曾经自己修改后用过的插件 第一个是女性管理员皮肤 第二个是男性管理员皮肤
可以实现
女性管理员皮肤 T CT
男性管理员皮肤 T CT
对应的权限请看
ADMIN_CHAT
ADMIN_KICK
在USER.INI里面设置相应的权限便可#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike")
register_clcmd("amx_m_mm","resetModel", ADMIN_CHAT, "- MM服饰");
register_event("ResetHUD", "resetModel", "i")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/mmt/mmt.mdl")
precache_model("models/player/mmct/mmct.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "mmt")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "mmct")
}
else {
cs_reset_user_model(id)
}
return PLUGIN_CONTINUE
} #include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike")
register_clcmd("amx_m_op","resetModel", ADMIN_KICK, "- OP服饰");
register_event("ResetHUD", "resetModel", "b")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/boyop_ct/boyop_ct.mdl")
precache_model("models/player/boyop_te/boyop_te.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_VOTE) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "boyop_te")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "boyop_ct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
} |
|