Skip to content
/SLASHPLAY

How to disable spectator on a TF2 server

Type mp_allowspectators 0 in the server console to stop players idling in spectator. 1 allows it again.

mp_allowspectators

Toggles whether players are allowed to join spectator.

mp_allowspectators <0|1>

Examples

mp_allowspectators 0

Everyone must play.

Values

ValueWhat it does
0 Off
1Default On

Arguments

0|1Required
0 blocks the spectator team.

What it does

Turn it off to stop players from idling in spectator on a full server.

The game's own description: toggles whether the server allows spectator mode or not

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to tf/cfg/server.cfg. New to this? Start a TF2 server first.

Your own
TF2 server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.