NB! It seems this console command is not compatible with CS2.
Command Profile

HOST_PLAYERS_SHOW

CS:GO

This command will set how the playercount is disclosed when your server is queried. See argument information for options.

Syntax
host_players_show [0 / 1 / 2]

Description

This command will set how the playercount is disclosed when your server is queried. See argument information for options.

How To Use host_players_show

  1. Enable the developer console in Counter-Strike settings.
  2. Open the console with the tilde key (~).
  3. Enter host_players_show [0 / 1 / 2], replacing bracketed arguments with the value you want, then press Enter.

This legacy command is not currently listed as compatible with Counter-Strike 2.

Syntax And Arguments

host_players_show [0 / 1 / 2]
0 / 1 / 2 Your desired option for how playercount is shown when the server is queried. Options are:
  • 0 - no playercount shown
  • 1 - maximum playercount without count of online players
  • 2 - full playercount