Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. // OBJECTIVE:
  2. // if (foo == 1) team 1 players don't die
  3.  
  4. player = find(world, classname, "player");
  5.  
  6.     while (player)
  7.         {
  8.        
  9.         if (player.team_no == 1)
  10.             {
  11.        
  12.                 if(foo == 1)
  13.                     return;
  14.                
  15.                 // break? or continue?
  16.                 // if foo is true, go onto the next player
  17.             }
  18.         else
  19.    
  20.         if (player.team_no == 2)
  21.             {
  22.        
  23.             }
  24.        
  25.         T_Damage(player, other, other,1000,0,#TF_TD_OTHER);
  26.                    
  27.                        
  28.         player = find(player, classname, "player");
  29.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement