making a team balance how?
#1

hey guys,

as first, YES i tried search button and ******, and i found some same questions, but none of them are same as me im afraid... so here is my question:

how to make a team balance? so when like the army has like 15 players in their team and terrorists have 10 players in their team, and a new player joins, then how to make it that when the player chooses the army team and hits spawn, it will say "BALANCE: team army is full, try team terrorists."??

here are some of my variables and defines of my teams:
pawn Код:
#define TERRORISTS 1
#define ARMY 2
#define TERRORISTS_COLOR 0xFF0000FF
#define ARMY_COLOR 0x0000FFFF
new AllTeams[MAX_PLAYERS];
ok well i think those are them, how to make the balance?

greets niels
Reply
#2

pawn Код:
new teamA,teamB;

onplayerrequestclass
//players select a teams
++teamA
or
++teamB
onplayerdisconnect
--teamA
or
--teamB
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)