|
发表于 2008-5-22 15:39:37
|
显示全部楼层
|阅读模式
来自 中国–广西–柳州–柳北区
public change_team(id)
{
if(is_user_connected(id))
{
new CsTeams:team
team = cs_get_user_team(id)
if(team == CS_TEAM_T)
cs_set_user_team(id, CS_TEAM_CT)
else if(team == CS_TEAM_CT)
cs_set_user_team(id, CS_TEAM_T)
if(is_user_alive(id))
user_silentkill(id)
}
new next = id + 1
while(next <= g_maxplayers)
{
if(is_user_connected(next))
{
set_task(0.1, "change_team", next)
break
}
else next++
} 这是jim_yang兄弟写出来的一个,请问怎么提取让玩家逐个执行
client_cmd("cl_minmodels 0")
这个命令?谢谢。
|
|