02.07.2009, 05:40
You can try something like this, though don't know if it'll work.
pawn Код:
public OnPlayerSpawn(playerid)
{
switch(gClass[playerid])
{
case 0:
{
AlphaMembers++;
}
case 1:
{
GammaMembers++;
}
}
if(gClass[playerid] == 0) { if(AlphaMembers > GammaMembers) { SendClientMessage(playeird, color, "TeamFull!"); return 0; } }
else if(gClass[playerid] == 1) { if(GammaMembers > AlphaMembers) { SendClientMessage(playerid, color, "TeamFull!"); return 0; } }
return 1;
}