Team Balance
#4

Try that
pawn Code:
stock Balance() {
    new
        count,
        player[MAX_PLAYERS]
    ;
    foreach(Player, i) {
        player[count++] = i;
    }
    for(new rand, half = count / 2; halft--; count--) {
        rand = random(count);
        HumanSetup(player[rand]);
        player[rand] = player[count];
    }
    while(count) {
        ZombieSetup(player[--count]);
    }
}
Reply


Messages In This Thread
~fixed~ - by Blackazur - 29.06.2013, 17:11
Re: Team Balance - by Anak - 29.06.2013, 17:17
Re: Team Balance - by Pottus - 29.06.2013, 17:36
AW: Team Balance - by Nero_3D - 29.06.2013, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)