SHARE
TWEET

Untitled

a guest May 19th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.             }
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top