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

ENEMYSPOT

CS:GO

This command will activate the "enemy spotted" radio command that sends a voice message and message in the chat.

Syntax
enemyspot

Description

This command will activate the "enemy spotted" radio command that sends a voice message and message in the chat.

How To Use enemyspot

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

enemyspot