Counter-Strike 2

Counter-Strike 2

100 ratings
How to create a weapon buyscript (+weapon list)
By Quackadile
Sometimes you have to buy weapons rapidly in CS:GO. Then binding the buying on keys could be usefull. Ill teach you how to do that with an autoexec.
   
Award
Favorite
Favorited
Unfavorite
How does it work
To bind a command you have to type bind key command in the console ingame. If you don't want to do this every time you restart the game, then you need to create an autoexec.
It will "type" anything you want in console every time you start the game.
Creating an autoexec
Here is a step for step tutorial on creating autoexecs.
  • Go to steam and click on "Library"

  • Rightclick on Counter: Strike Global Offensive and hit "Properties"

  • Pick the tab "Local Data"


  • Hit "Browse local data"


  • Open the folder "csgo" and then "cfg"



  • Create a text file and name it "autoexec.cfg"
[/b]
[/list]
Open it with "Editor" or download an external program like "Notepad++"[notepad-plus-plus.org]

→ Now you are ready to edit it.
What to put into the autoexec
So like I explained earlier, you need to type bind the "buy" command to a key. To do so, just put: bind "key" "buy weapon;" in to the autoexec (You will find a list of all the weapons names further down).
Repeat for each key:
bind "p" "buy m4a1;" bind "o" "buy p250;"
If you want to buy multiple items on one key, just put multiple buy weapon; inbetween the "s:
bind "p" "buy m4a1; buy p250;"
If you want to, you can add other commands or cvars like maxfps 120 .
Weapon list
Pistols
Weapon
Name for autoexec
Glock
glock
P2000 and USP-S
hkp2000
Tec-9
tec9
P250
p250
Desert Eagle
deagle
Dual Barettas
elite
Five-Seven/Cz-auto
fiveseven

Rifles
Weapon
Name for autoexec
Galil
galilar
Ak-47
ak47
Famas
famas
M4A4/ M4A1-S
m4a1
Aug
aug
Sg 553
sg556
Ssg 08
ssg08
Awp
awp
G3SG1
g3sg1
Scar20
scar20

SMGs
Weapon
Name for autoexec
Mac-10
mac10
MP9
mp9
PP-Bizon
bizon
UMP-45
ump45
MP7
mp7
P90
p90

Shotguns
Weapon
Name for autoexec
Nova
nova
Mag7
mag7

Sawed-Off
sawedoff

XM1014
xm1014

Machine Guns

Weapon
Name for autoexec
M249
m249
Negev
negev

Grenades
Weapon
Name for autoexec
Flashbang
flashbang
HE
hegrenade
Smoke
smokegrenade
Decoy
decoy
Molotov
molotov
Incendiary
incgrenade

Equipment

Equipment
Name for autoexec
Kevlar
vest
Kevlar + Helmet
vesthelm
Defuse Kit
defuser
Zeus x27
Taser (Capital T!)
NUMPAD keys
So because the most used keys for this purpose are the numpad keys, I will tell the names for them only.

Key
Name for autoexec
NUM1
kp_end
NUM2
kp_downarrow
NUM3
kp_pgdn
NUM4
kp_leftarrow
NUM5
kp_5
NUM6
kp_rightarrow
NUM7
kp_home
NUM8
kp_uparrow
NUM9
kp_pgup
NUM0
kp_ins
NUM"/"
kp_slash
NUM"*"
kp_multiply
NUM"-"
kp_minus
NUM"+"
kp_plus
NUM"Enter"
kp_enter
NUM"Delete"
kp_del
My config
bind "kp_5" " buy vesthelm; buy vest; buy defuser;" bind "kp_end" " buy smokegrenade;" bind "kp_pgdn" " buy flashbang;" bind "kp_downarrow" " buy hegrenade;" bind "kp_leftarrow" "buy awp;" bind "kp_rightarrow" "buy ak47; buy m4a1;"

This code binds:
Kevlar + helmet + defusekit to Num5
Smoke to Num1
HE to Num2
Flash to Num3
Awp to Num4
Ak/M4 to Num6
Finishing words
Thank you for reading this guide :D.
I hope you liked it and will now be able to create autobuy scripts. If you liked it, please consider sharing, adding to favorites and rating.
Feel free to tell me your opinion about the guide in the comments. You can do this if you want something added also.

If you want to donate a skin or a key to me, or just want to trade with me, here is the link:

https://steamcommunity.com/tradeoffer/new/?partner=204349295&token=ilouc3E5

To do so, just click on the button and you will be brought to the trade offer.

Если вы русско-говорящий, вы можете поситить мой канал:
"Birch Team"
35 Comments
yung süssli 29 Nov, 2016 @ 7:06am 
+rep
Nexus 19 May, 2015 @ 2:10am 
:csgob:
Supchik 7 May, 2015 @ 7:36am 
Nice guide
Jå¥Kïllå 29 Apr, 2015 @ 4:26am 
yea it is, ty :csgogun::csgogun::csgogun::csgogun::csgob::csgoa::csgob:
Qui Gon Jinn 29 Apr, 2015 @ 2:10am 
thnx :)
Quackadile  [author] 28 Apr, 2015 @ 10:30pm 
I think its fiveseven and tec
Jå¥Kïllå 28 Apr, 2015 @ 2:44pm 
czauto bind?
Quackadile  [author] 24 Apr, 2015 @ 10:20am 
Thx for the good thought tho :D
noseferatu 24 Apr, 2015 @ 9:51am 
if i had skins, i'd donate one.