The principle : asign a command to a keyboard key (or mouse event)
1) Open your HL configuration file with a text editor (like Notepad). This file is located in YOUR_INSTALLED_DIR\Valve\Steam\SteamApps\YOUR_STEAM_ACCOUNT_NAME\half-life 2 deathmatch\hl2mp\cfg\config.cfg
2) As you can see, in fact all your command are binds.
Code: Select all
bind "A_KEY" "A_COMMAND"
Code: Select all
bind "F1" "say E=mc² clan rocks"
4) go in game and press F1 key. Yeah, you are right E=mc² rocks !