下面是引用 tw2twtw 于 2010-10-29 21:24 发表的 :
在sma中加上
server_cmd("bot_join_team ^"t^"")
server_cmd("bot_chatter off")
可取消bot语音和让bot选tr ......
但是玩家怎办0.0 ((像ZH一样强制移动!?
It's not hard :)
复制程式
public logevent_round_start()
{
static id, g_maxplayers
g_maxplayers = get_maxplayers()
for (id = 1; id <= g_maxplayers; id++)
{
if (is_user_bot(id)) //BOT的情况下
{
if (cs_get_user_team(id) == CS_TEAM_T || cs_get_user_team(id) == CS_TEAM_SPECTATOR) //为T或者是SPEC的情况下不移动队伍
return;
cs_set_user_team(id, CS_TEAM_T)
}
else if (!is_user_bot(id) && is_user_connected(id)) //是玩家的情况下
{
if (cs_get_user_team(id) == CS_TEAM_CT || cs_get_user_team(id) == CS_TEAM_SPECTATOR) //为CT或者是SPEC的情况下不移动队伍
return;
cs_set_user_team(id, CS_TEAM_CT)
}
}
}