Binding Keys and Aliases in CS 1.6

March 12, 2026 Daemon666 8 min read 13 visualizações

Binds and aliases are what separate a configured CS 1.6 player from someone fumbling through the buy menu every round. A bind maps a key to one or more commands; an alias names a sequence of commands so you can reuse or toggle it. Both are just console commands, so they belong in your autoexec.cfg. This covers the syntax, the traps, and the two patterns you will actually use: buy binds and toggles.

1. The bind syntax

The form is bind "key" "command". The command in quotes runs when the key is pressed:

bind "f" "+use"
bind "r" "+reload"
bind "t" "+voicerecord"

Type bind in the console with just a key to see what it is currently bound to, and unbind "key" to clear one. unbindall wipes everything — useful to start clean, but only if your autoexec then rebinds a full set, or you will be left with a keyboard that does nothing.

2. Key names you need to know

Keys have specific names; guessing wrong is a common reason a bind "does nothing":

  • Letters and digits are themselves: a, 5.
  • Mouse buttons: mouse1, mouse2, mouse3 (wheel click), mouse4, mouse5, and mwheelup / mwheeldown.
  • Numpad keys are prefixed kp_: kp_end (1), kp_downarrow (2), kp_home (7), kp_ins (0), and so on — these are the classic buy-bind keys.
  • Named keys: space, ctrl, shift, alt, enter, tab, semicolon, uparrow.

3. Chaining commands with semicolons

Multiple commands on one key are separated by semicolons, inside the quotes:

bind "kp_end" "buy primammo; buy secammo"
bind "h" "say Nice shot!; slot1"

Every command runs in order on the single keypress. This is the foundation of buy binds — a whole loadout on one key.

4. Build a buy bind

The buy menu accepts direct buy commands, so you can bind a full kit. Weapon aliases like ak47, m4a1, deagle, vesthelm, hegrenade, flashbang work regardless of team where the item exists:

// full-buy CT on one key
bind "kp_downarrow" "buy m4a1; buy deagle; buy vesthelm; buy hegrenade; buy flashbang; buy flashbang; buy smokegrenade; buy defuser"
// full-buy T
bind "kp_leftarrow" "buy ak47; buy deagle; buy vesthelm; buy hegrenade; buy flashbang; buy flashbang; buy smokegrenade"

Buys that do not apply (a defuser as T, an item you cannot afford) are simply ignored, so a slightly over-specified bind is harmless. Keep two keys — one CT kit, one T kit — and you rebuy in a single press during freezetime.

5. The +/- hold commands

Commands starting with + stay active while the key is held and release on a matching -. The engine handles the release automatically when you bind a + command:

bind "space" "+jump"
bind "shift" "+speed"     // walk while held
bind "mouse3" "+duck"

Do not bind the - half yourself; binding +duck to a key gives you both press and release for free. Manually mixing + and - on the same key is how people end up permanently crouched.

6. Toggle aliases that flip each press

An alias names a command sequence; two aliases that redefine a third let you flip state on each press. The classic is a crouch-toggle or a hand-switch:

alias "togglehand" "hand_on"
alias "hand_on" "cl_righthand 1; alias togglehand hand_off"
alias "hand_off" "cl_righthand 0; alias togglehand hand_on"
bind "c" "togglehand"

The trick: each half redefines togglehand to point at the other half, so pressing c alternates between right and left hand. The same pattern toggles a nightvision, a bomb-timer bind, or a "clean HUD" screenshot mode. Put all of this in autoexec.cfg so it loads every launch.

Common errors

  • Bind does nothing — wrong key name (e.g. mwheel_up instead of mwheelup, or numpad1 instead of kp_end). Verify the name.
  • Only the first command runs — you split commands with something other than a semicolon, or the whole chain is not wrapped in one pair of quotes.
  • Stuck crouched or walking — you bound both a + and a - command by hand. Bind only the + half.
  • Toggle alias only works once — each alias half must redefine the toggle name to the other half; a missing alias togglehand ... line breaks the flip.
  • Binds vanish next launch — you set them in the console but did not save them to autoexec, and config.cfg did not capture them. Put them in autoexec.cfg.

Verification

Bind a test key, then read it back in the console:

bind kp_downarrow

It should echo the full command string you assigned. Join a server, hit your buy key during freezetime, and confirm the loadout appears in one press. Test the toggle key twice and confirm the state alternates. Once your set works, save it into autoexec.cfg so it survives every launch.

Colaboradores: Daemon666 ✦
Compartilhar: