Post: [1.12]CFG: Basic Commands (Noobs)
07-30-2011, 09:21 PM #1
XILE_
This is Epic
(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 workCool Man (aka Tustin)

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 seeSmile
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 prosperSmile

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?
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to XILE_ for this useful post:

aerosoul94, Blackstorm, Downhunter, KeithH4666, wowaka, zFlaVouR

The following 6 users groaned at XILE_ for this awful post:

.Pluto, MeowDev, KCxFTW, User23434, Matt1511, User2340034u
07-30-2011, 09:22 PM #2
Matt1511
R.I.P. MVIEYRA</3
To many of these:n:

The following user thanked Matt1511 for this useful post:

.Pluto

The following user groaned Matt1511 for this awful post:

Blackstorm
07-30-2011, 10:01 PM #3
I thought this was helpful :P
07-30-2011, 10:05 PM #4
XILE_
This is Epic
Originally posted by Downhunter View Post
I thought this was helpful :P


your welcome. I know that i was struggling at one point, wondering what are the commands and what can i possibly do with them. so I'd return the favor to those who are having trouble with this.
07-30-2011, 10:49 PM #5
KeithH4666
Social engineering <3
Originally posted by iiHackii View Post
your welcome. I know that i was struggling at one point, wondering what are the commands and what can i possibly do with them. so I'd return the favor to those who are having trouble with this.


so vstr is used for what?
07-30-2011, 10:55 PM #6
Matt1511
R.I.P. MVIEYRA</3
Originally posted by Downhunter View Post
I thought this was helpful :P


never said wasnt helpful! its a great tut! there are just a lot
07-30-2011, 11:05 PM #7
XILE_
This is Epic
Originally posted by KeithH4666 View Post
so vstr is used for what?


You can then execute a variable string with the command "vstr"

The following user thanked XILE_ for this useful post:

KeithH4666
07-30-2011, 11:42 PM #8
Originally posted by mvieyra View Post
never said wasnt helpful! its a great tut! there are just a lot


Why Groan then? A little bit mean :(

---------- Post added at 12:42 AM ---------- Previous post was at 12:40 AM ----------

Originally posted by iiHackii View Post
You can then execute a variable string with the command "vstr"


Question:
Say My char is too long and I want to put my biggest menu into another .cfg.
I put it into a a .cfg, will i have to type this in under the Main Menu Option... exec .cfg;vstr Chat_Menu
Will that work?
07-30-2011, 11:44 PM #9
Matt1511
R.I.P. MVIEYRA</3
Originally posted by Downhunter View Post
Why Groan then? A little bit mean :(

---------- Post added at 12:42 AM ---------- Previous post was at 12:40 AM ----------



Question:
Say My char is too long and I want to put my biggest menu into another .cfg.
I put it into a a .cfg, will i have to type this in under the Main Menu Option... exec .cfg;vstr Chat_Menu
Will that work?


Groans arent mean. They mean nothing. I have groaned all the same tuts lol it what i do:y:

The following 3 users groaned at Matt1511 for this awful post:

Blackstorm, JamazkieHD, mattyjkilledme
07-30-2011, 11:46 PM #10
Originally posted by mvieyra View Post
Groans arent mean. They mean nothing. I have groaned all the same tuts lol it what i do:y:


Lol, They give me an impression something is bad...

The following user thanked Downhunter for this useful post:

JamazkieHD

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo