|
楼主 |
发表于 2008-8-9 19:54:13
|
显示全部楼层
来自 中国–广西–百色
回复: 请教个命令问题.......
public plugin_init() {
register_plugin("Pingjun","1.1","JOHN")
register_logevent("endRound", 2, "1=Round_End");
return PLUGIN_CONTINUE
}
public endRound(){
new Tnum=0,CTnum=0
new players[32],num
get_players( players, num)
for (new i = 0; i < num; i++){
new team=get_user_team(i)
if(team==1)
++Tnum
else
++CTnum
if(Tnum-CTnum>=2){
if((get_user_frags(i)>5)&& (get_user_frags(i)/get_user_deaths(i)>=1.3)&& (get_user_team(i)==1)){
new player = i
engclient_cmd(player,"jointeam","2");
engclient_cmd(player, "joinclass", "2");
}
return PLUGIN_HANDLED
}
if(CTnum-Tnum>=2){
if((get_user_frags(i)>5)&& (get_user_frags(i)/get_user_deaths(i)>=1.3)&& (get_user_team(i)==2)){
new player = i
engclient_cmd(player,"jointeam","1");
engclient_cmd(player, "joinclass", "1");
}
return PLUGIN_HANDLED
}
}
return PLUGIN_HANDLED
}
自动平衡时出现选队伍的菜单,请问两位版主如何去掉这个菜单显示呢?
或纠正一下.....谢谢.... |
|