Rcon Commands
From RconMax
Rcon (Remote Console) commands can be used by an admin who has the rcon password to change the setting on the game server affecting the way the game is played. The commands can be issued either in game using the in game console, or with an rcon tool like RconMax.
In game (COD4) commands are issued in the game console. Press the ~ (Tilde) key to open the console and log in by typing:
/rcon login <password>
replace <password> with the rcon pass (without brackets).
After logging into rcon commands are issued by typing the command into the console in the following format:
/rcon <command> <value>
Do not forget the /rcon. Only some commands require a <value>. For example:
/rcon map_restart
will restart the map, and
/rcon sv_maxping 200
will set the max ping to 200.
Commands
A | B | C | D | E| F | G | H | I | J | K | L | M | N | O | P | Q | R | S | SCR | SV | T | U | V | W | X | Y | Z | Notes
Section A
- _admin "Nikita, Wuwu" The name(s) of your admin(s).
Section B
- banclient <ID> Permanently bans a user by client number. Writes their GUID to ban.txt.
- banuser <playername> Permanently bans a user by name. Must include colour codes. Writes their GUID to ban.txt
Section C
- clientkick <ID> Kicks a player by client id.
Section E
- _email "My Clan Email Address" Your admin / clan email address.
Section F
- fast_restart Restarts the current map without reloading it.
Section G
- g_allowvote <0-1> (Off / On) Allow voting.
- g_log <logfilename> Name of log file, default is games_mp.log
- g_logsync <0-3> (0 = No log, 1 = Buffered, 2 = Continuous, 3 = Append)
- g_password "my password" The server password. Setting a password makes the server private. Leave the password blank "" to make it public.
- gametype <gametype> Changes the current game type.
Section K
- kick <playername> Kick player by name from the server. Must include colour codes.
- kick all Kicks all players from the server.
Section L
- _location "Manchester UK" The location of your server.
- logfile <0-1> (0 = NO log, 1 = Log file enabled)
Section M
- map <mapname> Loads the map specified by <mapname>
- map_restart Reloads the current map.
- map_rotate Loads the next map in the rotation.
Section Q
- quit Restarts the server.
Section S
- say "my message" Broadcasts a message to all players.
- serverinfo Displays current server's settings.
- status Displays a list of all the players on the server.
Section SCR
- scr_game_allowkillcam <0-1> (Off / On) Turns the kill cam on or off.
- scr_game_spectatetype <0-2> (Disabled, Team/Players Only, Free) Sets the spectate type.
- scr_hardcore <0-1> (Off / On) Turns hardcore mode on or off.
- scr_motd "Your message goes here" Message of the day.
- scr_oldschool <0-1> (Off / On) Turns old school mode on or off.
- scr_teambalance <0-1> (Off / On) Team balance.
- scr_team_fftype <0-3> (Disabled, Enabled, Reflect, Shared) Sets the friendly fire type.
Section SV
- sv_connecttimeout <0-n> (seconds) How long the server will wait for a player to connect before disconnecting them.
- sv_hostname "My Servers Name" The name of your server.
- sv_log_damage <0-1>
- sv_mapRotation gametype <gametype> map <mapname> gametype <gametype> map <mapname> ... The map rotation. The order / sequence in which maps and game types will be played on the server. The maximum length of map rotation that COD4 will accept is 1024 characters. This includes the command, the game types and the map names.
- sv_maxclients <1-32> The maximum number of players (slots) that can join the server.
- sv_maxping <0-n> (milliseconds)
- sv_minping <0-n> (milliseconds)
- sv_punkbuster <0-1> Disable / enable PunkBuster. This command only works from in the server config file or the server command line. It can not be used remotely to stop / start PunkBuster.
- sv_timeout <0-n> (seconds) How long the server will wait before disconnecting a player which is not responding (999).
- sv_voice <0-1> (Off / On) In game voice chat.
Section T
- tempbanuser <playername> Temporarily bans player by name.
- tempbanclient <ID> Temporarily bans player by client id.
Section U
- unbanuser <playername> Unban every player banned with <playername>. Players can also be unbanned by editing the ban.txt file.
Section W
- _website "www.rconmax.co.uk" Your web site address.
Section Notes
Valid game types:
- dom - Domination
- koth - Headquarters (King Of The Hill)
- sab - Sabotage
- sd - Search & Destroy
- war - Team Death Match (War)
List of stock map:
- mp_backlot - Backlot
- mp_bloc - Bloc
- mp_bog - Bog
- mp_cargoship - Wet Work
- mp_citystreets - District
- mp_convoy - Ambush
- mp_countdown - Countdown
- mp_crash - Crash
- mp_crash_snow - Winter Crash
- mp_crossfire - Crossfire
- mp_farm - Downpour
- mp_overgrown - Overgrown
- mp_pipeline - Pipeline
- mp_shipment - Shipment
- mp_showdown - Showdown
- mp_strike - Strike
- mp_vacant - Vacant
- mp_broadcast - Broadcast
- mp_carentan - Chinatown
- mp_creek - Creek
- mp_killhouse - Killhouse
Broadcast, Chinatown, Creek and Killhouse were added in the COD4 patch 1.6
