Bugzilla – Bug 5757
MaxClients wrong on CS:GO
Last modified: 2013-06-11 17:54:34 PDT
MaxClients seems to always return 64 on CS:GO.
This is normal and is the actual engine MaxClients value, the one that can only change at map load (for SourceTV joining/leaving or otherwise). You are looking for the game's dynamic max clients, controlled by CS:GO's gametypes system in this case. Use GetMaxHumanPlayers. It's new with L4D and any game that came after. http://hg.alliedmods.net/sourcemod-central/file/c604c6143dfb/plugins/include/clients.inc#l212
Thank you, I had no idea that function exists. Everything is working as expected now with GetMaxHumanPlayers.