Full credit goes to http://anarchyrules.co.uk/cod2/server%20commands.html
All maps are available in each gamemodes:
dm
: death matchtdm
: team death matchsd
: search & destroyctf
: capture the flaghq
: headquarter
Map name list:
mp_breakout
mp_brecourt
mp_burgundy
mp_carentan
mp_dawnville
mp_decoy
mp_downtown
mp_farmhouse
mp_leningrad
mp_matmata
mp_railyard
mp_toujane
mp_trainstation
Here are the available commands you can use to control your server.
Usage :
- from the server console: just type the command directly.
- from the in-game console:
- Enable in-game console in server configuration (
sv_disableClientConsole=0
); - Log in using
rcon login
; - add the
/rcon
prefix to the command.
- Enable in-game console in server configuration (
/rcon login [rconpassword]
: Login to remote rcon. Be VERY carreful not leaking your password when using rcon login !
status
: Displays info of all the players on the server.serverinfo
: Shows the current server's settings.systeminfo
: Shows the current system information.tell [id]
: Sends private message to specified client idsay
: Broadcast a message to all playersexec [FILENAME]
: Executes a Server Config File (located in your server's main directory)writeconfig [FILENAME]
: Saves a Server Config File
matchtimeout
: Calls a match timeout (see server cvars for timeout settings)matchtimein
: Cancels timeoutsetkillcam
: Set the killcam cvar (now that it is read only during play)setfriendlyfire
: Set the friendly fire cvar (now that it is read only during play)setdrawfriend
: Set the draw friend cvar (now that it is read only during play)
map mapname
: Loads the map specified by mapname.map_rotate
: Loads next map in rotation set in sv_maprotation.map_restart
: Restarts the map.
kick [name]
: Kicks a player by name from the server. (Must include Color Codes)rcon onlykick [name]
: Kicks a player by name from the server. (Does not need Color Codes)clientkick [id]
: Kicks a player by client id from the server.kick all
: Kicks all players from serverbanUser [name]
: Bans a user by their ingame name. Writes their GUID to ban.txtbanClient [id]
: Bans a user by their client number. Writes their GUID to ban.txttempBanUser [name]
: Kicks and temporarily bans player by name from server.tempBanClient [id]
: Kicks and temporarily bans player by client id from serverunban [name]
: Unban every player banned with [name]. If you want to unban a single player whose name appears more than once, you should edit "ban.txt" manually.
Server config files can be found in the /cod2server/main directory.
A note on server path:
set fs_basepath
: set the game folder, where theconfig
and.iwd
files are.set fs_homepath
: set the multiplayer log file and live config folder.
Server config generator: https://www.opferlamm-clan.de/config-generator-cod2.html
There is two types of logs:
- The server logs:
- It's the output of the server binary when executed.
- It contains server informations, map rotation, etc.
- The game logs:
- It's written by the server binary to a file, created under
$fs_homepath/main/games_mp.log
by default. - It contains all game information (kills, dammages, players join / quit, chat message, etc)
- It's written by the server binary to a file, created under