(adsbygoogle = window.adsbygoogle || []).push({});
A Basic Tutorial
Well Here goes Nothing.
Here is a list of the Commonly used
Commands in CFG:
[COLOR="#FF0000"]say
set
bind
unbind
vstr
map_restart
fast_restart
kick
toggle
exec[/COLOR]
An example to use is:
[COLOR="#FF0000"]bind[/COLOR]
If you would like for dpad up to do a fast_restart, the code would be like this:
[COLOR="#FF0000"]bind[/COLOR] DPAD_UP "[COLOR="#FF0000"]fast_restart[/COLOR]"
(I think the quotes aren't really needed, but just to stay organized or for practice"
you can bind any control to any command or set of commands as many times as you want.
you can also group a set of
Command Codes together to be used via the command "
set".
"
Set" can set DVAR values and also create variable string. A variable string is a set of
command codes, stated earlier.
Command Codes are separated with
;
Example:
[COLOR="#FF0000"]set[/COLOR] TEST "[COLOR="#FF8C00"]Code; Code; Code[/COLOR]"
You can then execute a variable string with the command "
vstr"
Example:
[COLOR="#FF0000"]vstr[/COLOR] TEST
Any command can be in a variable string, so you can execute a "
vstr" command in a variable string.
This is how Mod Menus in .CFG work
Example of binding dpad up to a variable string:
[COLOR="#FF0000"]bind[/COLOR] DPAD_UP "[COLOR="#FF0000"]vstr[/COLOR] TEST"
Dvars- you can have a Dvar value with sets. You also have an option to toggle a dvar value if you want(I'm not entirely sure how many values you can have).
Example:
Toggle cg_laserForceOn 1 0
I'm not sure if that's the correct/right Dvar but it's just an example for you to see

well that's just to get you started about what the basic commands are like and what they can do.
There are many ways you can use these to extend the CFG commands into something extraordinary, but just use these commands correctly and you'll surely prosper
I know this tutorial isn't the best, but hopefully it helped out those who are curious about what is/what are .CFG Commands.:bro:
**Feedback are always welcome:y:
*Edit: Darn!! it wasn't suppose to be thumbs down in the title :/ any way to switch it?