Advertisement
Guest User

Untitled

a guest
May 19th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.44 KB | None | 0 0
  1.             new iTeamID;
  2.             if(aTeamCount[WWTW_TEAMATTACK] == aTeamCount[WWTW_TEAMDEFEND])
  3.             {
  4.                 // Teamcount is equal, random team
  5.                 iTeamID = random(2);
  6.             }
  7.             else
  8.             {
  9.                 if(teamCount[WWTW_TEAMATTACK] > teamCount[WWTW_TEAMDEFEND])
  10.                 {
  11.                     // Attack team is bigger, make him a defender
  12.                     iTeamID = WWTW_TEAMDEFEND;
  13.                 }
  14.                 else
  15.                 {
  16.                     // The other way around
  17.                     iTeamID = WWTW_TEAMATTACK;
  18.                 }
  19.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement