|
原贴地址:http://www.dt-club.net/forum/thread/71/30161.htm?highlight=OP%E6%9C%8D%E8%A3%85
#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", "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")
precache_model("models/player/dcoo_liumang_ct/dcoo_liumang_ct.mdl")
precache_model("models/player/dcoo_liumang_t/dcoo_liumang_t.mdl")
precache_model("models/player/dcoo_girl_ct2/dcoo_girl_ct2.mdl")
precache_model("models/player/dcoo_girl_t1/dcoo_girl_t1.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid)
{
if (get_user_flags(id) & ADMIN_LEVEL_A)
{
new CsTeams:userTeam = cs_get_user_team(id)
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
{
if (get_user_flags(id) & ADMIN_LEVEL_C)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T)
{
cs_set_user_model(id, "dcoo_girl_t1")
}
else
{ if (userTeam == CS_TEAM_CT)
{
cs_set_user_model(id, "dcoo_girl_ct2")
}
}
}
else
{
if (get_user_flags(id) & ADMIN_LEVEL_B)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T)
{
cs_set_user_model(id, "dcoo_liumang_t")
}
else
{
if (userTeam == CS_TEAM_CT)
{
cs_set_user_model(id, "dcoo_liumang_ct")
}
}
}
else
{
cs_reset_user_model(id)
}
}
}
return PLUGIN_CONTINUE
}
我装好以后,如果同时在线VIP超过10个人的话,就会无故KICK大部分,请问这个插件有VIP在线人数的限制吗?如果哪位老大有更好的插件,希望能够提供一下! |
|