G.MaxPlayers
From GMod Wiki
| Function | |
| Syntax |
MaxPlayers( ) Where is this used? |
| Description: | |
| Returns the maximum number of players that can be in the game. | |
| Returns: | Number |
| Part of Library: | Global Functions |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.MaxPlayers]G.MaxPlayers [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Prints how many players are allowed. |
|---|---|
| Used on | |
| Code | Msg( MaxPlayers() .. " players are allowed on this server!\n") |
| Output | N/A |