maxplayers
maxplayers
is a console variable available in all Source games.
maxplayers is a server console variable that determines the maximum number of players that can join a game. It cannot be changed while a server is running.
The absolute player limit of Source is 255, though the number supported by most games is far lower. Usually the limit is 32.
![Warning.png](/w/images/thumb/c/cb/Warning.png/10px-Warning.png)
![Counter-Strike: Global Offensive](/w/images/thumb/8/85/Csgo_icon.png/16px-Csgo_icon.png)
![Warning.png](/w/images/thumb/c/cb/Warning.png/10px-Warning.png)
![Counter-Strike 2](/w/images/thumb/5/52/Cs2_icon.png/16px-Cs2_icon.png)
Usage
The engine can be put into single-player mode by setting maxplayers to 1 before a game starts. This bridges the normal client-server divide in several areas, eliminating latency and interpolation and opening backdoors like the one used by the inverse kinematics system.
The entity indices 1 to <maxplayers> are reserved for player entities (0 is worldspawn).