TEIN, Код
public Action:randominv(Handle:timer) 
 { 
  for (new i=1;i<=MaxClients;i++)  
  { 
   if (IsClientInGame(i)) 
   { 
    if (GetClientTeam(i) == 2) 
    { 
     CS_SwitchTeam(i, 3); 
    } 
   } 
  } 
  xd = GetAlivePlayers(); 
  if (xd > 10) 
  { 
   new t = GetRandomPlayer();  
   if (t != -1)   
   { 
    for (new y=1;y<=2;y++) 
    { 
     CPrintToChatAll(msg, "2 t's", xd++); 
     CS_SwitchTeam(t, 2); 
     CS_RespawnPlayer(t); 
     CPrintToChatAll(msg, "player go to terrorists", t); 
     PrintCenterTextAll("Игрок %N выбран следующим невидимкой!", t); 
    } 
   } 
  } 
  else 
  { 
   new t = GetRandomPlayer();  
   if (IsClientInGame(t)) 
   { 
    CPrintToChatAll(msg, "need more players for more t's", xd++); 
    CS_SwitchTeam(t, 2); 
    CS_RespawnPlayer(t); 
    CPrintToChatAll(msg, "player go to terrorists", t); 
    PrintCenterTextAll("Игрок %N выбран следующим невидимкой!", t); 
   } 
  }
  
 Вроде не работает :CДобавлено (27.03.2014, 00:48:08)
---------------------------------------------
Разобрался