- 听众
- 收听
- 积分
- 21
- 主题
- 回帖
- 0
- 精华
注册时间2008-3-16
最后登录1970-1-1
该用户从未签到
|
{
new playersCT[32]
new playersT[32]
new nbrCT, nbrT
client_print(0,print_chat,"上半场比赛结束,交换队伍")
get_players(playersCT,nbrCT,"e","CT")
get_players(playersT,nbrT,"e","TERRORIST")
for(new i = 0; i < nbrCT; i++)
{
cs_set_user_team(playersCT, CS_TEAM_T)
client_print(playersCT,print_chat,"* [提示] 你被转移到恐怖分子一方", playersCT, "NOW_ON_T")
}
for(new i = 0; i < nbrT; i++)
{
cs_set_user_team(playersT, CS_TEAM_CT)
client_print(playersT, print_chat, "* [提示] 你被转移到反恐精英一方", playersT, "NOW_ON_CT")
}
}
}
比赛插件里的换队伍的代码,可在32人的服里只要一运行就程序假死,不知是否只能在16人以下的比赛服运行,不能在31人的服运行,十分感谢。 |
|