Counter-Strike RCon Guide


Rcon Login

Task Syntax Description
Login to rcon /rconpassword password It's better to store your rcon password in a game browser and not login through the console.

We recommend that you avoid logging in to rcon through the game console. If you mistype the command you risk printing your rcon password on screen for everyone on the server to see. Game browsers like All-Seeing Eye and HLSW can store your rcon password and log you in automatically when you join your server. Alternatively, you can create a key bind that enters in your password, for example: /bind r "rconpassword password".


General Commands & Variables
To issue these with rcon from the game console they must be preceded with /rcon

Task Syntax Description
Change RCON Pass rcon_password password Replace password with the rcon server password to gain access to all the rcon commands.
Change Level changelevel map_name This command allows you to change the map.
Status users Lists the current players names with id and wonid.
Kick Player Name kick name If you need to kick a player replace name with the players name.
Kick Player ID kick#number If you need to kick a player replace number with the players number.
Ban Player ID banid time #number If you need to ban a player replace time with the amount of time you would like to ban them
Server Password sv_password password To password protect the server replace password with the games password.
Restart Game sv_restart time Resart the game, both teams scores are reset as is money. replace time with a value upto 10.
Restart Round sv_restartround time Resart the round, replace time with a value upto 10.
Frienly Fire mp_friendlyfire number Replace number with 1 to turn friendly fire on or 0 to turn it off.
Chase Cam mp_forcechasecam number Replace number with 1 to force chase cam mode or 0 to disable it.
Round Limit mp_roundlimit number Replace number with the amount of rounds before the level changes.
Round Time mp_roundtime number Replace number with a time in minutes - normally 5 (3-15 allowed).
Time Limit mp_timelimit number Replace number with the time in minutes for each map - 0 = no time limit.
Say something though server say text Sends a message from the server admin to the screen which all players can read. replace text with the message.
Color Message cm_say @@r text Sends a color message to the centre of the screen. replace r which is red with g for green y for yellow etc. replace text with the message.
Restart Server quit

Restarts your server

Staring Money

mp_startmoney x

This integer value controls the amount that players start with at the beginning of a new map or when they join a server. 800 is the default and the minimum value, while 16000 is the maximum.
Deatailed Log

mp_logdetail x

Use this bitwise svar to control the depth of your logs. Be warned, these options can eat away hard drive space and CPU cycles. Use 0, the default, to log no attacks, 1 to log enemy attacks, 2 to log teammate attacks, and 3 to log both.

Player ID

mp_playerid x

This variable controls what players see when they put their crosshair over an enemy, a hostage, or a teammate. At 0 (the default), the player see's all popups with team colors. At 1, the player sees their teammates and hostages, with team colors. At 2, players see no popups.

Fading

mp_fadetoblack x

This is also to combat ghosting, but is more harsh. 0 will have no affect on the game, while 1 will disable chasecam and any sort of death cam at all. The client's screen fades to black instantly after death. One boon of this setting is that corpses stay around for the entire round. Useful for clan matches.

Buying Time

mp_buytime x

A floating point (decimal) value to determine the buy time in minutes. E.g., '1.25' equals one minute and fifteen seconds of buy time (this is not the pause, but the time where it is legal to purchase stuff). The minimum value is 0.25 and there is no maximum.

Win Limit

mp_winlimit x

This, of course, is an integer (whole number). When a team reaches this amount of wins (before the timelimit or the roundlimit is reached), it has won the map. 0, or disabled, is the default.

Spectators

allow_spectators x

Setting to 1 will allow spectators, while 0 will disallow them. These are non-playing spectators, not dead people.

Team Killer Banning

mp_autokick x

This variable is defaulted to 1. Toggles automatic team-killer banning and kicking of idle clients - Setting of 1 = 'on', and 0 = 'off'.

Team Balancing

mp_autoteambalance x

This variable is defaulted to 1. Toggles the forcing of clients to join teams to make it balanced - Setting of 1 = 'on', and 0 = 'off'.

Bomb Timer

mp_c4timer x

This variable is defaulted to 45. Sets the amount of time in between C4 placement and its explosion - ranges between 15 and 90 seconds.

Use Flashlights

mp_flashlight x

This variable is defaulted to 1. Toggles the use of flashlights by clients - Setting of 1 = 'on', and 0 = 'off'.

Hear Footsteps

mp_footsteps x

This variable is defaulted to 1. Toggles footstep sounds - Setting of 1 = 'on', and 0 = 'off'.

Freeze Players For Buying

mp_freezetime x

This variable is defaulted to 6. Sets the amount of "freeze" time at the beginning of each round to buy weapons and equipment - Use a setting of '0' to disable.

Hostage Kill Kicking

mp_hostagepenalty x

This variable is defaulted to 0, or disabled. Sets the number of hostages a player can kill before they are booted from the server.

Number of more players on team can have over another

mp_limitteams x

This variable is defaulted to 2. Sets the maximum number of players that one team can have more than the other team - Use a setting of '0' to completely disable the team limiting.

Log Chat Messages

mp_logmessages x

This variable is defaulted to 1. Toggles logging of chat messages in the log files - Setting of 1 = 'on', and 0 = 'off'.

Map Vote Ration

mp_mapvoteratio x

This variable is defaulted to 0.6. Set the ratio of players required to vote on the same map before a map will change. The default is 0.6 , which means that 60% of the players on a server must vote on the same map in order for the server to change to that map. The range is 0.0-1.0.

Kick Vote Ration mp_kickpercent x

This variable is defaulted to 0.66. Set the ratio of players on someone's team required to vote to kick the "someone." The default is 0.66, which means that 66% (2/3rds) of the players on his team must vote him off in order for him to be kicked. The range is 0.0-1.0.

Team Kill Punishing mp_tkpunish x

This variable is defaulted to 1. Toggles the forcing of a player to sit out the next round if he has just killed a teammate - Setting of 1 = 'on', and 0 = 'off'.



// Use this file to configure your DEDICATED server.
// This config file is executed everytime the server changes levels.
// disable autoaim
sv_aim 0
// disable clients' ability to pause the server
pausable 0
// default server name. Change to "Bob's Server", etc.
hostname "Counter-Strike 1.5 Server"
// maximum client movement speed
sv_maxspeed 320
// 20 minute timelimit
mp_timelimit 20
sv_cheats 0

Configuration Files

When a server runs, it reads from four basic configuration files – autoexec.cfg, server.cfg, motd.txt, and mapcycle.txt. For examples of these configs, go to the files page and check out the possibilities.

The autoexec.cfg is used for commands only, such as "maxplayers 12", "log on", or "map cstrike". If you do place the "map <mapname>" command in the autoexec.cfg, then it MUST be the very last line of the file. The autoexec.cfg executes only once when running a server, when the server is first initialized. The autoexec.cfg does not automatically come with the server, so you will have to make it yourself. Finally, there is nothing that the autoexec.cfg does that the target line of the server can not do. In fact, some addons I have tried (a few bot programs) have to be in the command line or the server does not boot.

The server.cfg, on the other hand, executes every time the map changes. The server.cfg takes advantage of both commands and variables, such as turning off decals, or setting the flags for your multiplayer game. This is where you set the name of your server, using "hostname <servername>". Please note that “log on” should never be put in the server.cfg or you will have an enormous amount of log files. Please take a look at the available commands and cvars. Here is the default server.cfg that your server comes with:

// Use this file to configure your DEDICATED server.
// This config file is executed everytime the server changes levels.

// disable autoaim
sv_aim 0

// disable clients' ability to pause the server
pausable 0

// default server name. Change to "Bob's Server", etc.
hostname "Counter-Strike 1.5 Server"

// maximum client movement speed
sv_maxspeed 320

// 20 minute timelimit
mp_timelimit 20

sv_cheats 0

The motd.txt file contains the text that people will read when the map changes - information like "Welcome to the server blah blah blah ". You can have up to 155 characters. Here is the default motd.txt:

You are playing Counter-Strike v1.5
Visit the official CS web site @
www.counter-strike.net

Last is the mapcycle.txt. All of the maps you want rotated on your server should be placed in this file. Use the mapname without the ".bsp" extension. So, to place the map "de_chateau.bsp" into the mapcycle.txt, simply add "de_chateau" into the file. Also, each mapname goes on its own separate line of text. If you ever see you server playing “hldm1” that means your mapcycle.txt is incorrectly formatted.


Admin Mod Command List

Commands Description
admin_help <keyword or string | # > Displays information about available commands
admin_ban <target or WONID or IP> [<minutes>] Bans target. 0 minutes is a permanent ban
admin_cancelvote Cancels the current hlds_ld vote
admin_cfg <config file> Executes config file on server.
admin_chat <msg> Shows message only to other admins.
admin_csay <msg> Shows message in center of screen.
admin_denymap <map> Removes all votes for map.
admin_disco Starts disco fever. Fun mode only.
admin_enableallweapons Allows all weapons to be purchased. Use to remove all active weapon restrictions.
admin_enableequipment Allows all equipment to be purchased. Use to remove all active equipment purchase restrictions.
admin_enablemenu <menu #> Remove restriction from specified menu.
admin_execall <command> Force everyone to execute command.
admin_execclient <target> <command> Force target to execute command.
admin_execteam <team> <command> Force everyone on team to execute command.
admin_fraglimit <fraglimit> Sets the mp_fraglimit cvar.
admin_friendlyfire <on | off> Sets the mp_friendlyfire cvar.
admin_fun <"on" | "off"> Turns fun mode on or off.
admin_gag <target> [<minutes>] Gag target. 0 minutes is a permanent gag.
admin_glow <color | "off"> Causes you to glow that color.
admin_godmode <target> <"on" | "off"> Sets godmode on target.
admin_gravity <gravity> Sets the sv_gravity cvar.
admin_hostname <name> Sets the hostname cvar.
admin_kick <target> [<reason>] Kicks target.
admin_listmaps Shows maps in mapcycle.
admin_listspawn Lists all spawned entities.
admin_llama <target> Llama-fy target.
admin_map <map_name> Changes map.
admin_messagemode <command> Will treat 'say' as command.
admin_movespawn <identity> <X> <Y> <Z> <XAngle> <YAngle> <ZAngle> Moves a spawned item.
admin_nextmap Shows next map in cycle.
admin_noclip <target> <"on" | "off"> Sets noclip on target.
admin_nomessagemode Will treat 'say' as 'say'.
admin_nopass Clears the server's password.
admin_pass <password> Sets the server's password.
admin_pause Sets the pausable cvar to 1.
admin_psay <target> <msg> Sends a private msg to target.
admin_rcon <cmd> Executes rcon command.
admin_reload Reloads Admin Mod files.
admin_removespawn <identity> Removes a spawned item.
admin_restrictallweapons Disallow purchase of all weapons on server
admin_restrictequipment Disallow purchase of all equipment on server
admin_restrictmenu <menu #> Disallow purchase of anything from specified menu
admin_restrictweapon <menu #> <weapon #> Disallow purchase of specified weapon
admin_say <msg> Shows a message from you as admin.
admin_servercfg <config file> Sets the config file as the server's default.
admin_slap <target> Slaps target.
admin_slay <target> Slays target.
admin_slayteam <team> Slays everyone on team.
admin_spawn <class> <X> <Y> <Z> <XAngle> <YAngle> <ZAngle> Spawns a new item.
admin_ssay <msg> Shows a message from admin without identification.
admin_stack Will stack everyone on top of you.
admin_startvote Starts an hlds_ld vote.
admin_teamplay <teamplay> Sets the mp_teamplay cvar.
admin_teleport <target> <X> <Y> <Z> Teleports target to the given coordinates. See admin_userorigin.
admin_timeleft Shows the time left.
admin_timelimit <timelimit> Sets the mp_timelimit cvar. Value = minutes.
admin_tsay [color] <msg> Prints msg on lower right of screen.
admin_unban <WONID or IP> Unbans target.
admin_ungag <target> Ungag target.
admin_unllama <target> Unllama-fy target.
admin_unpause Sets the pausable cvar to 0.
admin_userlist [<name>] Shows a list of users.
admin_userorigin <target> Returns the X, Y, Z coordinates of target.
admin_vote_kick <target> Starts a vote to kick target.
admin_vote_map <map> Starts a vote to change the map.
admin_vsay <question> Presents question as a vote.
admin_ungag <target> Ungag target.
admin_unllama <target> Unllama-fy target.
admin_unpause Sets the pausable cvar to 0.
admin_userlist [<name>] Shows a list of users.
admin_userorigin <target> Returns the X, Y, Z coordinates of target.
admin_vote_kick <target> Starts a vote to kick target.
admin_vote_map <map> Starts a vote to change the map.
admin_vsay <question> Presents question as a vote.
say rockthevote Starts an hlds_ld vote.
say vote <map> Places a vote for the map.
say glow <color | "off"> Causes you to glow that color. Fun mode only.