Even Teams
#1

Hello,

Can anyone tell me how to make a even team script

so you dont get one team with 48 and anothe with 2
i will make then even so you get 25 and 25

Thanks

Jack Bull
Reply
#2

Just delete the post,
because noone gives a shit about helping me
Reply
#3

Can't agree more.
Reply
#4

Top of your script.
pawn Код:
new TeamBalance;
Then under OnPlayerSpawn

pawn Код:
new Team1=0, Team2=0;
for(new i = 0; i < MAX_PLAYERS; i++) {
  if(TEAM VARIABLE HERE) Team1++;
  if(TEAM VARIABLE HERE) Team2++;
  if(Team1 > Team2) TEAM VARIABLE HERE;
  else if(Team2 > Team1) TEAM VARIABLE HERE;
}
Should work. This is only for two different teams however, you'll need to edit it more should you want more teams on there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)