This is a script type I had been searching for a long time when I was a newbie, it’s used alot in configs, so pay attention!
So imagine we want to create a cycle that will change our name every time we press “H”.
(BEWARE: PunkBuster kicks for too many namechanges!)
We will have to create the bind itself, then we need to set what the bind will do and then we need to set the vstrs of it,
sounds complicated and long, but it is mostly the same.
Also notice you can add as many lines as you want. Try to see the pattern.
bind H “vstr NameCycle”
set NameCycle “vstr name1″ (this line will be changed automaticly every time you press H)
set name1 “name Trooper; set namecycle vstr name2″
set name2 “name Troopa; set namecycle vstr name3″
set name3 “name DTDM_FTW; set namecycle vstr name4″
set name4 “name troopzilla; set namecycle vstr name1″
(the last line redirects to the first line to keep the cycle going on into infinity)
So I set the button in a bind to execute the cycle. Every time we press the button, the cycle will go 1 step ahead.
On the 2nd line we set the vstr we mentioned in the bind on the 1st line. We make this vstr launch the first part of the actual cycle.
On the 3rd line we set the 1st part of the cycle, the one we mentioned on line 2. In this current line we add what the part of the cycle should do, so changing our name and then we add a piece to make the bind ready to do the next part of the cycle when it’s pressed again.
You can keep adding lines, but I recommend using a word with numbers like name1 2 3 … because you keep structure then.
The last line must ALWAYS direct to the first vstr in the cycle, if you named them cleanly it should be the one with number 1 at the end.
Be the first to like.
GD Star Rating
A vstr Cycle,