team.NumPlayers

From Garry's Mod
Jump to: navigation, search
 team.NumPlayers( )

Contents

Description

Returns the amount of players in a team.

Arguments

number teamIndex

The team index.

Returns

number

playerCount

Examples

Example

Prints the amount of players in a player's team

print(team.NumPlayers(ply:Team()))

Output:

The number of players in ply's team.
Personal tools
Navigation