Introduction: Counter-Strike Source Console Commands.

In almost every game with console commands enabled they play a big part, from modding the size of your cross-hairs to fine tweaking your server console commands are everywhere.

In this instructable i will be showing you how to use these commands and what they do.
The commands will be separated into different categories depending on what they do.

Step 1: General Commands.

"hostname" The name of the server.
"sv_password" Set server password. Leave blank to disable.
"mp_friendlyfire <0/1>" Turn on/off friendlyfire.
"mp_footsteps <0/1>" Turn on/off footsteps.
"mp_autoteambalance <0/1>" Force clients to auto-join the opposite team if they are not balanced.
"mp_autokick <0/1>" Kick idle/team-killing players
"mp_flashlight <0/1>" Turn on/off the ability for clients to use flashlight.
"mp_tkpunish <0/1>" Punish TK’ers on next round?
"mp_forcecamera <0/1>" Force dead players to first person mode, effectively disabling freelook.
"sv_alltalk <0/1>" Players can hear all other players, no team restrictions.
"sv_pausable <0/1>" Can the server be paused
"sv_consistency <0/1>" Force cleints to pass consistency check for critical files before joining server
"sv_cheats <0/1>" Allow cheats on server.
"sv_gravity <0/1>" World Gravity Default 800
"sv_maxvelocity" Maximum speed any ballistically moving object is allowed to attain per axis.
"sv_unlag <0/1>" Enables player lag compensation.
"sv_voicecodec" Specifies which voice codec DLL to use in a game. Set to the name of the DLL without the extension..
"sv_hltv <0/1>" Enables HLTV on the server.
"sv_allowupload <0/1>" Allow clients to upload their custom decals to the server.
"sv_allowdownload <0/1>" Allow clients to downnload files.
"sv_maxspeed Maximum speed a player can move. Default: 320
"mp_limitteams <0-20>" Max # of players 1 team can have over another
"mp_hostagepenalty <##>" How many hostages a Terrorist can kill before being kicked, 0 to disable.
"sv_voiceenable <0/1>" Allow clients to use mic.
"mp_allowspectators <0/1>" Allow spectators on the server.
"mp_chattime <0-120>" amount of time in seconds players can chat after the game is over. Lower value = faster map load change.
"sv_timeout <##>" After this many seconds without a message from a client, the client is dropped.

Step 2: Bot Commands.

"bot_add" This adds a bot to your server to a random team.
"bot_add_t" This adds a bot to terrorists.
"bot_add_ct" This adds a bot to counter terrorists.
"bot_quota_mode " This fills the server with bots keeping all human players in.
"bot_difficulty <0/1/2/3>" Selects the bots difficulty.
"bot_chatter" Selects how much the bots use the radio, values are:‘off’, ‘radio’, ‘minimal’, or ‘normal’.
"bot_auto_follow <0/1>" Allows the bots to follow a human player.
"bot_auto_vacate <0/1>" Kicks bots to make way for human players.
"bot_join_after_player <0/1>" Bots must wait for humans to join before they can.
"bot_defer_to_human <0/1>" Bots can complete goals if no human on the team.
"bot_prefix" A tag for the bots name.
"bot_allow_rogues <0/1>" Bots sometimes do not obey radio commands etc...
"bot_walk <0/1>" The speed at which bots can move. 0=walk+run, 1=walk
"bot_join_team " What teams are bots allowed to join?
"bot_eco_limit <0-16000>" Bots will not buy if their money falls below this amount.

------------------------------------------------Bot Weapon Restrictions------------------------------------------------------

"bot_all_weapons" Allow bots to use all weapons. ‘bot_all_weapons’ is the value.
"bot_knives_only" Allow bots to use only knives.
"bot_pistols_only" Allow bots to use only pistols.
"bot_snipers_only" Allow bots to use only sniper rifles.
"bot_allow_grenades <0/1>" Allow bots to use grenades.
"bot_allow_pistols <0/1>" Allow bots to use pistols.
"bot_allow_sub_machine_guns <0/1>" Allow bots to use sub machine guns.
"bot_allow_shotguns <0/1>" Allow bots to use shotguns.
"bot_allow_rifles <0/1>" Allow bots to use rifles.
"bot_allow_snipers <0/1>" Allow bots to use sniper rifles.
"bot_allow_machine_guns <0/1>" Allow bots to use machine guns.

Step 3: Game Details.

mp_freezetime <0-60>Time in seconds to keep players frozen when the round starts. Default: 6
mp_roundtime <1-9>How much time in minutes does a round last. Default: 5
mp_startmoney <800-16000>Amount of money each player gets when they reset (16000 max) Default: 800
mp_c4timer <10-90>The amount of time in seconds before bomb explodes after planted. Default: 45
mp_fraglimit <##>Amount of frags a player can exceed before changing maps. Default: 0
mp_maxrounds <##>Amount of round to play before server changes maps. Default: 0
mp_winlimit <0-20>Max number of rounds one team can win before server changes maps. Default: 0
mp_playerid <0/1/2>Controls what information player see in the status bar: 0 all names; 1 team names; 2 no names. Default: 0
mp_spawnprotectiontimeTime in seconds to Kick players who team-kill after round restart. Default: 5

Step 4: Other.

Server logging

log Enable server logging? Default: off
sv_logbans <0/1>Log server bans in the server logs. Default: 0
sv_logecho <0/1>Echo log information to the console. Default: 1
sv_logfile <0/1>Log server information in the log file. Default: 1
sv_log_onefile <0/1>Log server information to only one file. Default: 0
sv_logsdirFolder in the game directory where server logs will be stored.
Operation
sv_lan <0/1>0=Public/LAN, 1=LAN Default: 0
sv_regionGeographic location of the server.
-1 World
0 US East coast
1 US West coast
2 South America
3 Europe
4 Asia
5 Australia
6 Middle East
7 Africa
sv_contactContact email for server sysop
 

Well, that's it!
I hope this instructable helped you in some way or another =)

Comments

author
lemonie (author)2010-01-16

Copying stuff that's all over the internet anyway does not make an Instructable. Like the Doctor said - Forum Topic, which has the link to the site(s) you got this from would be more appropriate.

L

author
Doctor What (author)2010-01-15

 This would be much better suited for a forum topic, considering that it is just code copied and pasted from another site(s).