bind assigns a command to a key. Read the old binding first to avoid removing an important action. Plus commands need normal press-and-release behaviour.
Steps and result
- 1. Read bind p and save the response.
- 2. Try bind p "say hello" with one agreed test message.
- 3. Use the normal held action, such as bind e "+use", rather than manually separating release behaviour.
- 4. Use unbind p only if the key was previously unused; otherwise restore its original binding.
Verification and limits
Check after restarting because loaded CFG files can reassign keys. Avoid unbindall to remove one mistake; it affects all controls.
Questions and answers
Is this a CS2 guide?
No. This concerns GoldSrc Counter-Strike 1.6.
How do I revert changes?
Keep original values or affected-file backups and restore only those changes.