11.05.2010, 20:08
I got this from a GM, not actually what you want
but could be usefull
but could be usefull
pawn Код:
for(new p = 0; p < GetMaxPlayers(); p++)
{
if (GetPlayerTeam(p) == TEAM_ArmyRUS) Count1++;
else if (GetPlayerTeam(p) == TEAM_ArmyUSA) Count2++;
}
if ((Count1 > Count2) && GetPlayerTeam(playerid) == TEAM_ArmyUSA)
{
SendClientMessage(playerid,COLOR_RED, "[SERVER] Please choose another team so match will be balanced.");
return 0;
}
else if ((Count2 > Count1) && GetPlayerTeam(playerid) == TEAM_ArmyRUS)
{
SendClientMessage(playerid,COLOR_RED, "[SERVER] Please choose another team so match will be balanced.");
return 0;
}

