- 听众
- 收听
- 积分
- 373
- 主题
- 回帖
- 0
- 精华
注册时间2009-1-6
最后登录1970-1-1
该用户从未签到
|
发表于 2010-2-1 21:14:10
|
显示全部楼层
那叫EVA不叫天鹰战士初号机- #include <amxmodx>
- #include <amxmisc>
- #include <cstrike>
- public plugin_init() {
- register_plugin("Vip Model", "1.1", "Vip Model")
- register_event("ResetHUD", "resetModel", "b")
- return PLUGIN_CONTINUE
- }
- public plugin_precache() {
- precache_model("models/player/Azrael/Azrael.mdl")
- precache_model("models/player/Haker/Haker.mdl")
- return PLUGIN_CONTINUE
- }
- public resetModel(id, level, cid) {
- 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_LEVEL_C){
- if (userTeam == CS_TEAM_T)
- cs_set_user_model(id, "Azrael")
- else if(userTeam == CS_TEAM_CT)
- cs_set_user_model(id, "Haker")
- else
- cs_reset_user_model(id)
- }
- return PLUGIN_CONTINUE
- }
复制代码 |
|