[help] "Team is full."
#4

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;
}
Reply


Messages In This Thread
[help] "Team is full." - by Marc_307 - 02.07.2009, 04:11
Re: [help] "Team is full." - by HuRRiCaNe - 02.07.2009, 04:27
Re: [help] "Team is full." - by Marc_307 - 02.07.2009, 05:17
Re: [help] "Team is full." - by Grim_ - 02.07.2009, 05:40
Re: [help] "Team is full." - by dice7 - 02.07.2009, 07:24
Re: [help] "Team is full." - by Marc_307 - 02.07.2009, 08:18

Forum Jump:


Users browsing this thread: 3 Guest(s)