- Documentation
- Server functions
- countPlayersInTeam
Function
countPlayersInTeam
Returns the number of players in a team.
Syntax
int countPlayersInTeam(team theTeam)Arguments
theTeamteam- The team.
Returns
Player count or false.
Example
for _, team in ipairs(getElementsByType("team")) do
outputChatBox(getTeamName(team) .. ": " .. countPlayersInTeam(team) .. " graczy")
end