|
发表于 2008-9-20 23:39:00
|
显示全部楼层
|阅读模式
来自 中国–广西–百色–田东县
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("AdminModel", "2.0", "Aotshou")
register_event("ResetHUD", "resetModel","b");
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T){
if ( access(id, ADMIN_LEVEL_A) ){
cs_set_user_model(id, "mm_te")
}
else if(( get_user_frags(id)>=12 ) && get_user_team(id)==1 && !access(id, ADMIN_LEVEL_A)){
cs_set_user_model(id, "wa_te")
}
return PLUGIN_CONTINUE
}
if(userTeam == CS_TEAM_CT){
if( access(id, ADMIN_LEVEL_A) ){
cs_set_user_model(id, "op_ct8")
}
else if(( get_user_frags(id)>=12 ) && get_user_team(id)==2 && !access(id, ADMIN_LEVEL_A)){
cs_set_user_model(id, "hr_ct")
}
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
有人叫俺帮看....俺看不出来错的地方......谁能帮他改正错误? |
|