Data Scientist

# Call of Duty RCON commands

This articles contains the console commands (including RCON commands) that admins can use to control their own server.

The Call of Duty 4 console commands are very similar to the previous CoD editions, and so are many other versions.

## Console commands

You can enter commands by pressing ‘~’ while in-game. A small bar will appear at the top of your screen in which you can enter the following commands. If the console does not display when pressing ‘~’, it needs to be enabled (Main Menu ⇒ Options ⇒ Game Options… ⇒ Enable Console must say ‘Yes’).

P.s. For a larger console window (necessary for /status for example) you need to press ‘Shift + ~’.

## Commands

/serverinfoShows the server settings and configurations. /map [map name]Loads the given map. /map_rotateLoads the next map of the map rotation set in the 'sv_maprotation' file on your server. /map_restartRestarts the current map. /fast_restartRestarts the current map just like /map_restart but much faster. It will just restart the map and not reload it. /statusShows information about the connected players, including client ID, score, ping, GUID, name and IP address. The ID and name can be used for the following commands. /tell [player ID]Displays a message to a specific player by ID (given by the /status command). /clientkick [player ID]Kicks a player according to its ID (given by the /status command). /kick [player name]Same as the /clientkick command, but this command requires the player's name. However, some names are very difficult to enter (with colour codes etc.), thats why the /clientkick commands is easier in use. You can use all as player name, this will kick all players from the server. /onlykick [player name]Same as /kick as far as I know. /banClient [player ID]Bans a player according to its ID (given by the /status command). The player's GUID will be added to ban.txt. /banUser [player name]Same as /banclient, but this command requires the player's name. It is therefore advised to use the /banclient command (names can be long or contain colour codes). /tempBanClient [player ID]Temporary bans a player using the player's ID (given by the /status command). The length of a temporary ban can be changed in the server configuration file. /tempBanUser [player name]Temporary bans a player using the player's name. /unbanUser [player name]Unbans a user according to the player's name. If the player's name appears more than once in ban.txt, you can edit the file and remove the banned player manually. /dumpuser [player name]Shows information about the player. /killserverAs the name says: shuts your server down.

## RCON usage

It is very likely that you are not playing at the same location (IP address) as your server is. That’s why we use RCON (stands for remote control) commands. Using RCON is very easy, just add /rcon  in front of the commands above (removing the / of those commands). But you need to be logged in to use RCON.

/rcon login [password] Fill out the password of the server to use RCON commands.

Examples of RCON commands:

/rcon map mp_pipeline
/rcon status
/rcon banclient 5


## More

/serverstatusShows information about the server settings and a quick list of online players. /serverinfoShows some information about IW settings on your server. /systeminfoShows a list of the settings your server has. /clientinfoShows information about your client. /showipShows your IP address. /cmdlistShows a complete list of commands available.