05.05.2010, 18:48
Quote:
Originally Posted by Naxix
Try this then..
Код:
new Count1, Count2; for(new i = 0; i < GetMaxPlayers(); i++) { if(PlayerTeam[playerid] == ZombieTeam) Count1++; else if (PlayerTeam[playerid] == HumanTeam) Count2++; } if ((Count1 > Count2) && PlayerTeam[playerid] == HumanTeam) { SendClientMessage(playerid,COLOUR_RED, "Balancing teams. Choose Another Team"); return 0; } else if ((Count2 > Count1) && PlayerTeam[playerid] == ZombieTeam) { SendClientMessage(playerid,COLOUR_RED, "[BALANCER] Balancing teams. Choose Another Team"); return 0; } return 1; } |