How to start a team balancer
#1

Solved
Reply
#2

foreach player
if(selected classid is gTeam[playerid] == Zombie)
zcount++;

foreach player
if(selected classid is gTeam[playerid] == Humans)
hcount++;

if selected team_humans - if(hcount >= zcount) gTeam[playerid] = Zombie;
Reply
#3

Quote:
Originally Posted by The_Gangstas
Посмотреть сообщение
foreach player
if(selected classid is gTeam[playerid] == Zombie)
zcount++;

foreach player
if(selected classid is gTeam[playerid] == Humans)
hcount++;

if selected team_humans - if(hcount >= zcount) gTeam[playerid] = Zombie;
this is a really helpful theory.
Reply
#4

pawn Код:
if(gTeam[playerid] == Zombie)
    zcount++;
else if(gTeam[playerid] == Human)
    hcount++

if(gTeam[playerid] == Human)
    if(hcount >= zcount)
        gTeam[playerid] = Zombie;
If you use the theory above, it should looks like this a bit
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)