- nav:
- cs-nation home
- counter-strike info
- faq
- what are scripts? how do i use them?
what are scripts? how do i use them?
A script is a text file for Half-Life that contains "aliases" which make repetitive tasks, like buying weapons, a one-button action. Script files gennerally work by writing an alias that references multiple commands at once. A short example of an alias would look like this:alias quitcs "say bye; quit"
In this example we created a custom alias "quitcs" which executes two commands at once. The "say" command, and the "quit" command. So when you load this script and execute your alias by typing 'quitcs' in the console, or binding it to a key, these commands will be executed, and you will say bye to everyone and then exit Counter-Strike.
How do I load a script file?
To load a script file simply bring down the console and type "exec your_script.cfg".
If you would like to have your script file load each time you start Counter-Strike, create a file called autoexec.cfg in your cstrike directory and add "exec your_script.cfg" to this file.
If you lack the experience, or motivation to create your own, the buy script/alias packs written by rizzuh (Which can be found here) are for you. RzE's CS Helper is excellent for those who just want some professionally done aliases and scripts, without doing all the work themselves. A quick install, and a setup in the Counter-Strike config menu, and you're done.
More information