Some help with teams
#1

hey i want to noe if you can count the players on your team? im using gTeam
Reply
#2

pawn Код:
new TeamCount = 0;
for(new i; i < MAX_PLAYERS; i++)
{
  if(IsPlayerConnected(i))
  {
    if(gTeam[i] == TEAM_NAME)
    {
      TeamCount++;
    }
  }
}

Reply
#3

thx for the fast reply JaTochNietDan will test it.
Edit: i wasnt specific , i wanted to count all the players in a gang.thx for the help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)