team.NumPlayers

From GMod Wiki

Jump to: navigation, search
Function
Syntax team.NumPlayers( Integer TeamIndex )
Where is this used?
Description:
Gets the number of players in the specific Team.
Returns: Integer number of players
Part of Library: Team
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Team.NumPlayers]Team.NumPlayers [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionGets Team 1's number of players.
Used onNewerShared.png
Code
Msg(team.NumPlayers (1))
OutputOutputs Team 1's number of players in Console.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox