Where to join spectators
In a private game or on a community server, open the team selection menu and choose Spectators if the option is available. If your usual key does not open the menu, check the Choose Team binding in the controls settings.
If the option is unavailable
On another person's server, the game mode and administrator settings determine spectator access. If you can only join T or CT, ask the organizer whether spectator slots are available. Watching a teammate after you die in an official match is part of your player slot.
How to allow spectators on your server
On your own private server, check mp_allowspectators in the server console. The variable controls access to the spectator team. If it is disabled and you want to allow spectators, set mp_allowspectators 1 and reopen team selection. Ask a second participant to join as a spectator to check the result.