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

SV_DZ_AUTOJOINTEAM

CS:GO

This command, if set to 1 (default), will make it so that players are automatically assigned a team in Danger Zone. Set to 0 to disable (players must choose a team with dz_jointeam).

Syntax
sv_dz_autojointeam [0 / 1]

Description

This command, if set to 1 (default), will make it so that players are automatically assigned a team in Danger Zone. Set to 0 to disable (players must choose a team with dz_jointeam).

How To Use sv_dz_autojointeam

  1. Enable the developer console in Counter-Strike settings.
  2. Open the console with the tilde key (~).
  3. Enter sv_dz_autojointeam [0 / 1], 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

sv_dz_autojointeam [0 / 1]
0 / 1 Set to 0 to disable auto team assignment. Set to 1 to enable.