|
发表于 2004-6-22 00:26:37
|
显示全部楼层
来自 中国–陕西–西安
初步估计是这段代码的问题,因为不管玩多少局,只要一换边就立刻退出,手动换也一样
public swap()
{
new playersCT[32]
new playersT[32]
new nbrCT,nbrT
get_players(playersCT,nbrCT,"e","CT")
get_players(playersT,nbrT,"e","TERRORIST")
for(new i = 0; i < nbrCT; i++) {
engclient_cmd(playersCT, "chooseteam")
engclient_cmd(playersCT, "menuselect", "1")
if (is_user_bot(playersCT))
engclient_cmd(playersCT, "menuselect", "2")
else
client_cmd(playersCT, "slot2")
}
for(new i = 0; i < nbrT; i++) {
engclient_cmd(playersT, "chooseteam")
engclient_cmd(playersT, "menuselect", "2")
if (is_user_bot(playersT))
engclient_cmd(playersT, "menuselect", "4")
else
client_cmd(playersT, "slot4")
}
return PLUGIN_CONTINUE
}
郁闷的是我看了半天,看不出哪里不对,大家一块看看,哎.....让olol要失望了 |
|