Csgo_banner

Buyscripts And Rebuy

Where to put the script?


Either you insert your buyscript in the autoexec.cfg, or you make your own .cfg file and execute it by adding exec buyscript.cfg in your standard autoexec. Of course you can name your script whatever you want but I chose buyscript.cfg by default.



What lines do I add?


The basic syntax for making buyscripts is the following:
bind “KEY” “buy ITEM; buy ITEM; …”

Just insert whatever key you want to use on your keyboard and you're ready to go.




Here's are examples of what you can do:
 
 
bind “F1″ “buy ak47; buy m4a1; buy vest; buy vesthelm;”
If you press F1 when standing in a buyzone you automatically buy full kevlar and either an AK47 or M4A1, depending on whether you are T or CT.
 
bind “F2″ “buy hegrenade; buy flashbang; buy flashbang; buy smokegrenade; buy defuser;”
This line let's you buy a full grenade loadout consisting of two flashbangs, a HE, a smoke and a defuser. If you've got enough money you can just press F1+F2 for a full buy. You can also just use it to rebuy your grenades after a round.
 
bind “F5″ “rebuy”
Pretty much self explanatory. Rebuys whatever you bought last round.
 
bind “F3″ “buy awp; buy vest; buy vesthelm; say_team AWP”
Buys an AWP, full kevlar and announces on teamchat "AWP", all by pressing F3.
 
 
 
As you can see, you can write your buyscript whatever you want it to be like. For now we got the basics for making buyscripts covered, here is a list of items you can use in your script:

Pistols: “glock”, “hkp2000″, “tec9″, “p250″, “deagle”, “elites”, “fiveseven”
Shotguns: “nova”, “sawedoff”, “mag7″, “xm1014″
SMGs: “mac10″, “mp9″, “bizon”, “ump45″, “mp7″, “p90″
Rifles: “galilar”, “ak47″, “famas”, “m4a1″, “aug”, “sg556″, “ssg08″, “awp”, “g3sg1″, “scar20″
Machine Guns: “m249″, “negev”
Equipment: “vest”, “vesthelm”, “defuser”, “taser”
Grenades: “flashbang”, “hegrenade”, “smokegrenade”, “decoy”, “molotov”, “incgrenade”