awaydanax.blogg.se

Cs 1.6 config script
Cs 1.6 config script




  1. CS 1.6 CONFIG SCRIPT HOW TO
  2. CS 1.6 CONFIG SCRIPT CODE

Now, P is the key we are binding our alias to, "rr" is the name of the alias we defined before and that we are binding to the 'P' key. The bind tells CS1.6 to bind a key to a command. Now open userconfig.cfg and enter the following In layman's term, "sv_restartround 1" is the command which is now associated with our alias "rr" that will be executed when we hit the bound key. Which means that the command "sv_restartround 1" can also be executed by just writing "rr". The alias sets the name of the script to the name that follows.

CS 1.6 CONFIG SCRIPT CODE

Open your AnyName.cfg and type the following code into it: Now for the "alias" shyt, an example here will certainly clear your head, we will start with something REALLY simple, a script that restarts a round by pressing a key.

CS 1.6 CONFIG SCRIPT HOW TO

In this part, I will teach you the "language" of scripting, it's nothing major like ANOTHER language, it's the basic techniques used in scripting such as the alias command mentioned above.įirst things first, you now must know how to execute a config file in-game, its fairly simple, while in-game open up the console and type "exec AnyName.cfg", the script/commands within the specified file will be executed immediately.

cs 1.6 config script

NOTE: All config files are executed by the game console only! This is the config file that is mainly used for scripts. Within userconfig.cfg are your custom binds and your custom commands/settings. An alias is a name given to your custom command that can associate a number of actions or settings when the key bound to that alias is pressed. There is a file called valve.rc that automatically executes a few configs files by default every time you load Counter-Strike1.6, such as autoexec.cfg, userconfig.cfg, violence.cfg, etc. The only file that we need is the file that we created earlier in this tutorial, How do scripts work?Scripts are stored in the config files that Counter-Strike1.6 can execute. Scripts perform various things from buying multiple items with one button, changing different settings and simplifying in-game actions, so you can spend less time pressing buttons and more time owning your opponents.In Counter-Strike 1.6, scripts are majorly written in NotePad or any other text editor, and are saved in. Here is an example of a script, opened in notepad, Scripts have exactly the same concept!Ī script merely is a combination of commands/settings that makes it easier for the users and save them lot of time. bat file, were carried out simultaneously. bat(batch programs) files, they were basically simple text files with a different extension, they contained a bunch of commands which, upon execution of the.

cs 1.6 config script

This tut is written for the absolute noob and may be boring for vets, so please bear with me or better yet just read the damn tut, maybe you will find something that you don't know! By the time you are done reading this tut, you will have complete understanding of scripts in your head what scripts are? How to use them efficiently? All questions will be answered in the following. This tut will give you the edge over other scripters, a strong base to start off your scripting.

cs 1.6 config script

Have been scripting since CS1.3(NO JOKE, that game didn't even have the sv_restart command!!) and created many original scripts, only few of which can be seen on my submissions page in me profile. Welcome to Cs Madness guide for the ultimate knowledge of the basics to give you teh uber start to your scripting career for teh Counter-Strike 1.6 game.






Cs 1.6 config script