Jump to content
xisto Community
Sign in to follow this  
Extortioner

Counter-strike Buy Script! Fast, easy, and youre in control

Recommended Posts

Buy Script

 

This Script Tutorial will help you write a basic Buy Script by yourself. This is a great place to start for beginners and a good refresher for the "Old School" Scripters. I tried to break each part down Step by Step so you can see the Script start to take shape. So lets get started!

 

 

Step #1 - Making the Common Aliases

 

We will start by creating the common aliases that will be used throughout the Buy Script.

 

The basic commands of a Buy Script include:

 

 

1. ( buy )

- This opens the buy menu

 

2. ( menuselect )

- These select whatever is in that slot

 

3. ( ; )

- A semi-colon separates each part of the alias

 

4. ( " " )

- Quotation Marks tell the game when an alias starts and ends

 

5. ( / )

- This slash can be put in to comment out that line (Use when you want to describe something for yourself. The game will not read that line)

 

 

(Open up Notepad and follow along!)

 

Now we will make the aliases for the menuselects to make your script easier to read and with less text.

 

alias ms1 "menuselect 1"

alias ms2 "menuselect 2"

alias ms3 "menuselect 3"

alias ms4 "menuselect 4"

alias ms5 "menuselect 5"

alias ms6 "menuselect 6"

alias ms7 "menuselect 7"

alias ms8 "menuselect 8"

alias ms9 "menuselect 9"

alias mclr "slot10; wait; wait; slot10"

 

 

Step #2 - Making a Weapon Alias

 

We will now make an alias for your first weapon. We will use an MP5 for an example. The MP5 is located in the Buy menu, menuselect 3, then menuselect 1. The alias looks like this:

 

alias +MP5 "buy; ms3; ms1"

alias -MP5 "mclr"

 

I use the (+) and (-) signs for closing the menus. The (+) alias buys the items when you press the key and the (-) closes the menus when you release the key. I use the alias "mclr" from above in the (-) alias, since it is the alias I made to close the menus. I also use the abbrievated menuselect aliases ms3 and ms1, instead of retyping menuselect everytime.

 

Now repeat that for all weapons, it should look like this:

 

//Pistols - Menuselect 1//

alias +USP "buy; ms1; ms1"

alias -USP "mclr"

alias +GLOCK "buy; ms1; ms2"

alias -GLOCK "mclr"

alias +EAGLE "buy; ms1; ms3"

alias -EAGLE "mclr"

alias +P228 "buy; ms1; ms4"

alias -P228 "mclr"

 

//Shotguns - Menuselect 2//

alias +M3 "buy; ms2; ms1; mclr"

alias -M3 "mclr"

alias +XM1014 "buy; ms2; ms2; mclr"

alias -XM1014 "mclr"

 

//Submachineguns - Menuselect 3//

alias +MP5 "buy; ms3; ms1; mclr"

alias -MP5 "mclr"

alias +TMP "buy; ms3; ms2; mclr"

alias -TMP "mclr"

alias +P90 "buy; ms3; ms3; mclr"

alias -P90 "mclr"

alias +UZI "buy; ms3; ms4; mclr"

alias -UZI "mclr"

 

//Assault Rifles - Menuselect 4//

alias +AK47 "buy; ms4; ms1; mclr"

alias -AK47 "mclr"

alias +SIG "buy; ms4; ms2; mclr"

alias -SIG "mclr"

alias +M4 "buy; ms4; ms3; mclr"

alias -M4 "mclr"

alias +AUG "buy; ms4; ms4; mclr"

alias -AUG "mclr"

 

//Sniper Rifle - Menuselect 4//

alias +SCOUT "buy; ms4; ms5"

alias -SCOUT "mclr"

alias +AWP "buy; ms4; ms6"

alias -AWP "mclr"

alias +G3SG1 "buy; ms4; ms7"

alias -G3SG1 "mclr"

 

//Machinegun - Menuselect 5//

alias +M249 "buy; ms5; ms1"

alias -M249 "mclr"

 

//End Weapons Aliases//

At this point you can bind any of these if you want like:

 

bind "x" "+AK47"

bind "y" "+M4"

bind "z" "+AWP"

 

Most people don't want just a weapon, but if you want just a weapon bind those.

 

 

Step #3 - Making the Equipment Aliases

 

Now that we have the weapons aliased, lets do the equipment (menuselect 8)(buyequip). The same rules apply to the equipment. You can name the aliases whatever you want, but usually you want to be able to identify the alias by the name you give it. (ie) pammo is Primary ammo, flashg is a flashbang, helmet is armor with a helmet, get it? So the equipment aliases should look something like this:

 

alias +pammo "buy; ms6" //buys full primary ammo

alias -pammo "mclr"

alias +sammo "buy; ms7" //buys full secondary ammo

alias -sammo "mclr"

alias +armor "buy; ms8; ms1" //buy armor - $650

alias -armor "mclr"

alias +helmet "buy; ms8; ms2" //buy armor+helmet - $1000

alias -helmet "mclr"

alias +flashg "buy; ms8; ms3" //buy flashbang - $200

alias -flashg "mclr"

alias +hegren "buy; ms8; ms4" //buy he grenade - $300

alias -hegren "mclr"

alias +smokeg "buy; ms8; ms5" //buy smoke grenade - $300

alias -smokeg "mclr"

alias +defuser "buy; ms8; ms6" //buy defuse kit - $200

alias -defuser "mclr"

alias +nvgs "buy; ms8; ms7" //buy nvgs - $1250

alias -nvgs "mclr"

 

If you want to bind just equipment, here are some examples:

 

bind "x" "+armor"

bind "y" "+hegren"

bind "z" "+nvgs"

 

Ok, now I am going to make more equipment aliases to put in other aliases later. You ask why. This is why. Later you will be creating aliases with multiple items in them; so to make things more organized I use these to put in my multiple alias buys:

 

alias ammo1 "buy; ms6" //buys full primary ammo

alias ammo2 "buy; ms7" //buys full secondary ammo

alias arm "buy; ms8; ms1" //buy armor - $650

alias helm "buy; ms8; ms2" //buy armor+helmet - $1000

alias flash "buy; ms8; ms3" //buy flashbang - $200

alias he "buy; ms8; ms4" //buy he grenade - $300

alias smok "buy; ms8; ms5" //buy smoke grenade - $300

alias defus "buy; ms8; ms6" //buy defuse kit - $200

alias nvg "buy; ms8; ms7" //buy nvgs - $1250

 

I don't need the menu cleared until the end so these will be placed in another alias later. If you want to just buy the equipment, use the aliases with the (+)'s above.

 

 

Step #4 - Making Multiple Buy Aliases

 

Now lets make multiple buy aliases that buy the weapon + armor + primary ammo. Once again I will use MP5 for an example:

 

You will want to name these different than the ones before.

 

alias +MP5X "buy; ms3; ms1; arm; ammo1"

alias -MP5X "mclr; wait, wait; mclr"

 

Lets dissect this alias so it makes sense to everyone:

 

alias +MP5X "buy; ms3; ms1; arm;ammo1"

 

I buy an MP5 in bold,

I buy armor here in italics,

I buy full primary ammo where it is underlined

 

The armor and ammo are using the equipment aliases from above.

 

alias -MP5X "mclr; wait, wait; mclr"

 

I use the mclr alias and some waits since we buy more than one item. One is probably safe, but I just made two for double protection from the dreaded open menu.

 

Now lets make an alias to buy the weapon + armor + full primary ammo for all the submachineguns and assault rifles:

 

alias +MP5X "buy; ms3; ms1; arm; ammo1"

alias -MP5X "mclr; wait, wait; mclr"

alias +TMPX "buy; ms3; ms2; arm; ammo1"

alias -TMPX "mclr; wait, wait; mclr"

alias +P90X "buy; ms3; ms3; arm; ammo1"

alias -P90X "mclr; wait, wait; mclr"

alias +UZIX "buy; ms3; ms4; arm; ammo1"

alias -UZIX "mclr; wait, wait; mclr"

alias +AK47X "buy; ms4; ms1; arm; ammo1"

alias -AK47X "mclr; wait, wait; mclr"

alias +SIGX "buy; ms4; ms2; arm; ammo1"

alias -SIGX "mclr; wait, wait; mclr"

alias +M4X "buy; ms4; ms3; arm; ammo1"

alias -M4X "mclr; wait, wait; mclr"

alias +AUGX "buy; ms4; ms4; arm; ammo1"

alias -AUGX "mclr; wait, wait; mclr"

 

Now to bind these you would do it like this:

 

bind "x" "+MP5X"

bind "y" "+UZIX"

bind "z" "+SIGX"

 

Do you see how that works now. So you can make any combination you want and make an alias and bind it to a key.

 

 

Step #5 - Multiple Equipment Aliases

 

Lets now do some multiple equipment aliases (use the equipment aliases from above to make life easier).

 

alias +3grens "he; smok; flash"

alias -3grens "mclr; wait; wait; mclr"

 

bind "x" "+3grens"

 

This alias buys one of each of the 3 grenades.

 

alias +ctstuff "helm; defus; he; smok; flash"

alias -ctstuff "mclr; wait; wait; mclr"

 

bind "x" "+ctstuff"

 

This alias buys a helmet/armor, a defuse kit, and one of each grenade.

 

**Try some combinations on your own**

 

 

Step #6 - Make your Own

 

I think we have touched on all the areas for making a buy script. Now it is your choice for what you want in it. Make your own personal combinations and bind them to the keys you want. I usually have my 6 favorite weapons with armor and full ammo, then I have addition aliases for grenades, ammo, and armor. I have seen many Buy Scripts out there that are very complicated or try to do too much. Try these steps and make your own script that is easy and customizable.

ENJOY! :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.