Search
Username:
Password:

Register or Reset Password

SUBMISSIONS
Counter Strike
   New Maps
   New Tutorials
   New Skins
   New GUI's
   New Sounds
   New Threads
Other
   Media
   Gamers
   Clans
   Studios
A Easy guide to buy scripting in CSS
Difficulty: Beginner
Category: CS:S > ScriptingAuthor(s):
Did you create this? Request ownership

In this tutorial i will try to teach you how to buy weapons using one or more scripts.

1. First, you need to enable the developer console, in CSS main menu go to options, keyboard, advanced, and check the box named "Enable developer console". You can bring up the console by pressing the ` key which is next to the 1 key and above tab.

2. You need to think about what weapons you want to use a script for. If you want to buy a M4 with primary ammo, or hegranade or whatever.

Here is a list of all the weapons that you can make a script for:

galil - IDF Defender
ak47 - CV-47
scout - Schmidt Scout
sg552 - Krieg 552
awp - Magnum Sniper Rifle
g3sg1 - D3/AU1
famas - Clarion 5.56
m4a1 - Maverick M4A1 Carbine
aug - Bullpup
sg550 - Krieg 550 Commando
glock - 9x19mm Sidearm
usp - KM .45 Tactical
p228 - 228 Compact
deagle - Night Hawk .50C
elite - .40 Dual Elites
fiveseven - ES Five-Seven
m3 - Leone 12 Gauge Super
xm1014 - Leone YG1265 Auto Shotgun
mac10 - Ingram MAC-10
tmp - Schmidt Machine Pistol
mp5navy - KM Sub-Machine Gun
ump45 - KM UMP45
p90 - ES C90
m249 - M249
primammo - Primary Ammo
secammo - Secondary Ammo
vest - Kevlar
vesthelm - Kevlar+Helmet
flashbang - Flashbang
hegrenade - HE Grenade
smokegrenade - Smoke Grenade
nvgs - Nightvision
defuser - Defusal Kit

And all the keys that you use to execute the commands:

a,b,c,d,e,f,g ect. = stays the same
1,2,3,4,5,6 ect. = stays the same

On the keypad: (which is what i recommend you use)

0 = kp_ins
. = kp_del
1 = kp_end
2 = kp_downarrow
3 = kp_pgdn
4 = kp_leftarrow
5 = kp_5
6 = kp_rightarrow
7 = kp_home
8 = kp_uparrow
9 = kp_pgup
/ = kp_slash
* = *
- = kp_minus
+ = kp_plus
Enter = kp_enter

*Note: the numlock key can not be used in a script.

The F keys:

F1,F2,F3,F4,F5 = stays the same.

And some random keys that you may wish to use:

Alt = alt
Pause = pause
Backspace - backspace.

3. Next you need to learn how to bind a key in console, you can read other tutorials about this, or read on. All you have to do is type

bind

were = the key you want to bind something to
and = the command that you binded the key to.

4. Now, to actually bind a key to buy a weapon, you would have to bring up the console and type witch key you want to bind to buy what weapon. For example:

bind "kp_ins" "buy m4a1; buy primammo"

this will buy a m4 with primary ammo by pressing the 0 key on the keypad.

If i wanted to buy a flashbang with a hegranade, i would type

bind "kp_end" "buy flashbang; buy hegrenade"

this would buy a flashbang with a hegrenade when i press the 1 key on the keypad.

You can experiment a lot with the stuff i just tought you, and please leave any comments if you have any ideas of how to improve it.

---------------------------ADVANCED-------------------------

If you would like to buy say a ak47 when your on the terrorist side, and a m4 when your on the counter-terrorist side, with ammo, then you would type something like this:

bind "KP_INS" "buy ak47; buy m4a1; buy primammo"

that will bind the 0 key on the keypad to buy a ak47 on the terrorist side and a m4 on the counter-terrorist side with ammo.

And of cource if you wanted to go really silly, you could do this:

bind "pause" "buy m4a1; buy ak47; buy primammo; buy deagle; buy secammo; buy hegrenade; buy flashbang; buy vesthelm; buy nvgs; buy defuser"

This would buy a m4 or ak depending on what team you are on, with primary ammo, buy a deagle with secondry ammo, buy a hegrenade and a flashbang, buy Kavlar and helmet, buy nightvision and a defuser.

I hope my tutorial has helped you use buy scripts in CSS.

Whitey ][TM][
Added: 2 years agoTags: easy, guide, scripting
Feedback (6)
rickstar121 .
Bananite Fun Sun ProtectionY2M
Posted 7 months ago
Good job good job
KaeseStulle .
Y2M
Posted 7 months ago
Thanks for the tuturial and special thanks for the list of keys ;-)
-
NikonovT .
A bat in a belfry.Y2M
Posted 11 months ago
Pros: Renders the "Buy scripts" section useless.
Cons: None.
Improvements: None!
Notes: Thanks for taking the time to create this.
- A bat in a belfry.
reece .
reeceY2M
Posted 1 year ago
Improvements: nothing needs improving it's all good
- reece
reece .
reeceY2M
Posted 1 year ago
Improvements: nothing needs improving it's all good
- reece
magus1423 .
now with less humility!Y2M
Posted 2 years ago
Thank you god ihate how i only have 4 slots to save custom sets, this makes it SO much easier.....
- now with less humility!
Add Feedback
Provide constructive feedback. What is "constructive"?
You cannot post yet!
Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login.
Assessment
The community's verdict.
User Rating [+]
9/10
bScore
9.0/10
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This Tutorial in a nutshell...
Well Written & Helpful
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.
None found
Added by...
Whiteytm .
(" ")-_-(" ")
Ranked 1187th ( 3) with 1,424 points. 7 points behind .

[+] Donate
Related Tutorials