搜索
查看: 1730|回复: 0

玩家逐过执行加钱问题

[复制链接]
发表于 2008-8-30 16:41:39 | 显示全部楼层 |阅读模式 来自 中国–广西–柳州
public round_end()
{
g_round++
if(g_round % get_pcvar_num(g_pcvar_tcl))
{
  change_team(1)
}
}
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老大的帖子,没看懂,请问逐个执行加钱怎么写呢?谢谢
游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表