SA-MP Forums Archive
class - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: class (/showthread.php?tid=136513)



class - aircombat - 25.03.2010

how can i make that the class available for only 1 player like Protect The President?


Re: class - Andy_McKinley - 25.03.2010

Team Balancing

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  for(new p <= 0++; p < GetMaxPlayers(); p++)
  {
      if(2 > gTeam[p] == TEAM > gTeam[p] == TEAM > gTeam[p] == TEAM > gTeam[p] == TEAM > gTeam[p] == TEAM)
        {
    SendClientMessage(playerid,COLOR_, " ");
    return 0;
        }
    }
    return 1;
}