You control a Team Fortress 2 server through its console, which is the Console page in the NolimitHost Game Panel. You can also run commands remotely with RCON from inside the game.
RCON Basics
| Command |
Description |
rcon_password <password> | Set (on the server) or enter (in-game) the RCON password. |
rcon <command> | Run a command on the server from the in-game console. |
rcon_address <ip> | Send RCON commands to a server other than the one you are in. |
Once you have the password set, an in-game admin runs commands as rcon changelevel cp_process_f12, for example.
Map Commands
| Command |
Description |
changelevel <map> | Change the map and keep players connected. |
map <map> | Change the map as a fresh start, disconnecting players. |
nextlevel <map> | Set the map to load when the current one ends. |
maps * | List all available maps. |
Player Management
| Command |
Description |
status | List connected players with their user IDs, Steam IDs, IPs, and ping. |
kick <name> | Kick a player by name. |
kickid <userid> <reason> | Kick a player by user ID, with an optional reason. |
banid <minutes> <steamid> | Ban a Steam ID. Use 0 minutes for a permanent ban. |
unbanid <steamid> | Remove a Steam ID ban. |
addip <minutes> <ip> / removeip <ip> | Add or remove an IP ban. |
writeid / writeip | Save the ban lists to disk. |
Important: Bans are held in memory and are lost on restart unless you run writeid and writeip to save them to banned_user.cfg and banned_ip.cfg. Run both after banning.
Server Settings
| Command |
Description |
hostname "<name>" | Change the server name at runtime. |
sv_password <password> | Set or clear the join password. |
sv_cheats <0|1> | Toggle cheats. Required for cheat-only commands. |
sv_pure <0|1|2> | Control how much custom client content is allowed. |
say "<message>" | Send a message to all players. |
exec <config> | Run a config file from tf/cfg, for example exec server.cfg. |
Gameplay Variables
| Command |
Description |
mp_timelimit <minutes> | How long a map lasts before changing. 0 is unlimited. |
mp_winlimit <number> | A team must win this many rounds to end the map. |
mp_maxrounds <number> | End the map after this many rounds. |
mp_restartgame <seconds> | Restart the round and reset scores after the given delay. |
mp_friendlyfire <0|1> | Toggle friendly fire. |
mp_autoteambalance <0|1> | Toggle automatic team balancing. |
mp_scrambleteams | Shuffle the teams immediately. |
Tip: Commands such as mp_forcewin require sv_cheats 1. Turn cheats off again afterwards on a live server.
Note: The authoritative references for any TF2 command are the Valve Developer Community console command list and the official TF2 Wiki. Newer commands may exist that are not listed here.