下面是引用 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)
}
}
}