In the Counter-Strike FPS, a console is available in game to change some settings. By default the tilde key '~' brings down the console.

If this does not work, right-click on the game icon. Select Properties. In the Target field, look for the option -console. If it's not there add it, leaving a space before and after it. After editing, your Target may look like this: C:\\CS\\cstrike.exe -console
Accept changes and double-click on the icon. When the in game menu is shown, you should see Console as the first option. Go to the keyboard configuration screen and look for something mentioning 'console'. Bind this to whatever key you want. This article will pretend you picked the tilde key ~.

Console command examples: // comments that you should read and not type in. Leave out the //

  • name "Your name with spaces"
  • name YourNameWithoutSpaces
  • bind w +forward // make the w key move you forward as long as you hold it down
  • bind w forward // make the w key move you forward until you type -forward into the console
  • bind k "say okay" // make the k key chat "okay" to everyone
  • bind e "say I have a very long message to chat often. I realize this is annoying." // don't
  • bind tab +showscores // show scoreboard as long as you hold down tab
  • bind space +voicerecord // turn your mike on (if it's configured) as long as you hold down the spacebar
  • buy // bring up the buy menu
  • menuselect 3 // pick the third option on the current buy menu
  • bind f3 "buy;menuselect 1;menuselect 3" // buy the desert eagle handgun. notice how multiple commands are enclosed in quotes and separated by semicolons; note that the buy menu stays up. That's normal, hit the zero key to get rid of it.
  • bind f4 "buy;menuselect 4;menuselect 1;buy;menuselect 4;menuselect 3" // buy the assault rifle (ak47/m4a1) available to your side and post an error that you can't buy the other. (which is fine, just ignore it)
  • exec myalias.cfg // read the text file myalias.cfg and run each line in it like it was typed into the console.
  • alias ms1 "menuselect 1" // make ms1 mean menuselect 1 until you leave the game. For added usefulness, place all your aliases in a separate file in the same directory as autoexec.cfg and then add a line to autoexec.cfg which exec's your alias file
  • volume 1.0 // set the game volume to 1.0. you'll have to experiment with different values. 0.01 and 3.2 are both legal values
  • alias v10 "volume 1.0;bind + v11;bind - v09" // it's a pain but you can make the plus and minus keys control volume
  • alias v9 "volume 0.9;bind + v10;bind - v08" // you have to write a bunch of these aliases... one for each volume level. basically, when you hit a key, the volume gets changed and the keys are reassigned.
  • kill // commit suicide
  • bind del kill // commit suicide when you hit the delete key
  • bind mouse1 kill // commit suicide instead of shooting. it can be fun to tell people to do this
  • bind mouse1 +fire // shoot when you click. fixes last command
  • retry // This will cause you to attempt to re-connect to the last server that you tried to connect to, or re-connect to the current server.
  • Bind h +commandmenu This will bring up the help menu


Steam, the new application used to run Counter-Strike, has added many new console commands. The main ones are MP3 playing and new script possibilities.

  • mp3 play song1 //plays song1 which is in the valve folder
  • mp3 stop //stops mp3 playing

Buy scripts are easier now:

  • bind kp_end "m4a1; ak47; deagle; primammo; secammo; vesthelm" //when you press 1 on the numpad, you buy an M4 (CT), AK (T), Desert Eagle, primary ammo, secondary ammo, kevlar and a helmet

External links