BuyScript Help

snak3y3z1001

Newbie
Joined
Jul 16, 2004
Messages
375
Reaction score
0
Does anyone know exactly what i did wrong here? It can only buy the first thing on the list. I couldnt even buy a colt when i was on ct :/

//BuyScript
bind "KP_INS" "buy mp5navy; buy vesthelm; buy hegrenade; buy flashbang; buy flashbang; buy smokegrenade"
bind "KP_DEL" "buy sg550; buy g3sg1; buy vesthelm; buy hegrenadebuy ; primaamo"
bind "KP_MINUS" "buy vesthelm; buy primammo; buy hengrenade"
bind "KP_PLUS" "buy vesthelm; buy hegrenade; buy flash; buy flash; buy smokegrenade; buy defuserbuy ;primammo"
bind "KP_PGDN" "buy famas; buy galil; buy vesthelm; buy hegrenade; buy primammo"
bind "KP_END" "buy deagle; buy secammo; buy vesthelm; buy hegrenade"
bind "KP_5" "buy awp; buy vesthelm; buy hegrenade ;buy deagle; buy secammo"
bind "KP_LEFTARROW" "buy ak47; buy m4a1; buy vesthelm; buy hegrenade; buy primammo; buy defuser"
bind "KP_RIGHTARROW" " buy sg552; buy aug; buy vesthelm;buy hegrenade; buy primammo"
bind "KP_SLASH" "buy vesthelm; buy ;secammo; buy hegrenade"
bind "KP_UPARROW" "buy flashbang; buy flashbang"
bind "KP_HOME" "buy smokegrenade"
bind "KP_DOWNARROW" "buy mac10; buy tmp; buy vesthelm; buy hegrenade; buy primammo"
 
I will test mine later tonight, I won't be able to play til then, but here are my binds. You may want to try aliases...they may work better. I also throw in some extras like whiping knife out and doing "stopsound" right from the getgo.

////////////////////////////////////////////////////////////////
// PISTOLS: glock usp p228 deagle fn57 elites
// SHOTGUNS: m3 xm1014
// SUB-GUNS: tmp mac10 mp5 ump45 p90
// RIFLES: galil famas ak47 m4a1 sg552 aug
// SCOPES: scout sg550 awp g3sg1
// MACHINEGUN: m249
// AMMO: primammo secammo buyammo1 buyammo2
// EQUIPMENT: vest vesthelm flash hegren sgren defuser
// nvg shield
////////////////////////////////////////////////////////////////
//
// This is the script I use. Where possible, I try to put
// similar guns that are specific to a team on a single button.
// For example, take the MAC10 and TMP. There is one button
// that buys both MAC10 and TMP but since you can only buy the
// gun from the respective team you are on it will only buy
// that gun. Same for the autosniper guns.
// [email protected]
//
////////////////////////////////////////////////////////////////


// UNIVERSAL SETUP
alias AMMO "primammo; buyammo2; buyammo2;"
alias ARMOR "vest; vesthelm;"
alias SNIPER_AMMO "buyammo1; buyammo1;"
alias END "weapon_knife; stopsound;"

// HANDGUNS
alias BUY_GLOCK "glock; buyammo2; buyammo2; end;"
alias BUY_USP "usp; buyammo2; buyammo2; end;"
alias BUY_P228 "p228; buyammo2; buyammo2; end;"
alias BUY_DEAGLE "deagle; secammo; end;"
alias BUY_DUALS-57 "elites; fn57; buyammo2; buyammo2; end;"

// SHOTGUNS
alias BUY_PUMP "m3; buyammo1; armor; buyammo1; end;"
alias BUY_AUTO "xm1014; buyammo1; armor; buyammo1; end;"

// SUB-MACHINE GUNS
alias BUY_MAC-TMP "mac10; tmp; buyammo1; armor; buyammo1; end;"
alias BUY_MP5 "mp5; buyammo1; armor; buyammo1; end;"
alias BUY_UMP "ump45; buyammo1; armor; buyammo1; end;"
alias BUY_P90 "p90; buyammo1; armor; buyammo1; end;"

// ASSAULT RIFLES
alias BUY_GALIL-FAMAS "galil; famas; buyammo1; armor; buyammo1; end;"
alias BUY_SG-AUG "sg552; aug; buyammo1; armor; buyammo1; end;"
alias BUY_AK-COLT "ak47; m4a1; buyammo1; armor; buyammo1; end;"

// SCOPED RIFLES
alias BUY_SCOUT "scout; sniper_ammo; end;"
alias BUY_AWP "awp; end;"
alias BUY_AUTOSNIPER "sg550; g3sg1; sniper_ammo; end;"

// MACHINE GUN
alias BUY_PARA "m429; primammo; end;"

// OTHER STUFF (COMBOS)
alias BUY_NADES "hegren; flash; flash; end;"
alias BUY_SHIELD "shield; end;"



// BINDED KEYS
bind kp_slash armor
bind * ammo
bind kp_minus buyequip
bind kp_home buy_usp
bind kp_uparrow buy_deagle
bind kp_pgup buy_p228
bind kp_leftarrow buy_autosniper
bind kp_5 buy_scout
bind kp_rightarrow buy_awp
bind kp_end buy_galil-famas
bind kp_downarrow buy_sg-aug
bind kp_pgdn buy_ak-colt
bind kp_ins buy_mp5
bind kp_del sgren
bind kp_plus hegren
bind kp_enter flash

echo "Buy scripts ... LOADED"
 
Just noticed, u jave "buy" before everything. That is not needed. See my aliases.
 
BigWalnutZ said:
Just noticed, u jave "buy" before everything. That is not needed. See my aliases.
*edit* doh! didnt see the ammo aliases. you need to change em a little still though
*edit*
and you dont need buy in front of everything "buy sg550; buy primammo" thats not gonna work i suggest making a seperate alias for ammo buying and tack it on to the end.

ex. alias ammo-1 "buy primammo"
use it like alias mp5 "buy mp5navy; ammo-1"

heres a copy of my buy script i need to rework it cuz i just found out what i pointed out above. but all the names are correct.

echo CS:SOURCE QUICK-BUY SCRIPT

echo MADE BY acme420

// QUICK BUY WEAPON ALIASES ( TYPE WHATEVER GUN YOU WANT TO BUY AT CONSOLE TO BUY IT )


alias usp "buy usp; secammo"

alias glock "buy glock; secammo"

alias de "buy deagle; secammo;"

alias FN "buy fiveseven; secammo"

alias 9mm "buy elite; secammo"

alias p228 "buy p228; secammo"

alias m3 "buy m3; primammo"

alias xm "buy xm1014; primammo"

alias mp5 "buy mp5navy; primammo"

alias ump "buy ump45; primammo"

alias tmp "buy tmp; primammo"

alias p90 "buy p90; primammo"

alias mac10 "buy mac10; primammo"

alias ak47 "buy ak47; primammo"

alias sg552 "buy sg552; primammo"

alias m4a1 "buy m4a1; primammo"

alias aug "buy aug; primammo"

alias scout "buy scout; primammo"

alias awp "buy awp; primammo"

alias g3 "buy g3sg1; primammo"

alias 550 "buy sg550; primammo"

alias m249 "buy m249; primammo"

alias famas "buy famas; primammo"

alias galil "buy galil; primammo"



//QUICK BUY ITEM ALIASES


alias kevlar "buy vest"

alias kevlarhelm "buy vesthelm"

alias flashbang "buy flashbang"

alias hegren "buy hegrenade"

alias smoke "buy smokegrenade"

alias kit "buy defuser"

alias nightvis "buy nvgs"
 
Just wanted to point out to you bigwallnuts, that stopsound doesnt work anymore.
 
remove the space after all the ;'s should then work

ie
bind "KP_INS" "buy mp5navy;buy vesthelm;buy hegrenade;buy flashbang;buy flashbang;buy smokegrenade"
 
the space is needed, i fixed mine you can use it just change the binds how you like.

echo CS:SOURCE QUICK-BUY SCRIPT

echo MADE BY acme420

// QUICK BUY WEAPON ALIASES ( TYPE WHATEVER GUN YOU WANT TO BUY AT CONSOLE TO BUY IT )

alias primammo "buy primammo"

alias secammo "buy secammo"

alias usp "buy usp; secammo"

alias glock "buy glock; secammo"

alias de "buy deagle; secammo;"

alias FN "buy fiveseven; secammo"

alias 9mm "buy elite; secammo"

alias p228 "buy p228; secammo"

alias m3 "buy m3; primammo"

alias xm "buy xm1014; primammo"

alias mp5 "buy mp5navy; primammo"

alias ump "buy ump45; primammo"

alias tmp "buy tmp; primammo"

alias p90 "buy p90; primammo"

alias mac10 "buy mac10; primammo"

alias ak47 "buy ak47; primammo"

alias sg552 "buy sg552; primammo"

alias m4a1 "buy m4a1; primammo"

alias aug "buy aug; primammo"

alias scout "buy scout; primammo"

alias awp "buy awp; primammo"

alias g3 "buy g3sg1; primammo"

alias 550 "buy sg550; primammo"

alias m249 "buy m249; primammo"

alias famas "buy famas; primammo"

alias galil "buy galil; primammo"



//QUICK BUY ITEM ALIASES


alias kevlar "buy vest"

alias helm "buy vesthelm"

alias flash "buy flashbang"

alias hegren "buy hegrenade"

alias smoke "buy smokegrenade"

alias kit "buy defuser"

alias nightvis "buy nvgs"




// QUICK BUY ALIASES
//YOU CAN RE-BIND THESE COMMANDS TO OTHER KEYS AND OTHER WEAPONS.

bind f1 "tmp; mac10"
bind f2 "mp5"
bind f3 "famas; galil"
bind f4 "sg552"
bind f6 "ak47"
bind f7 "m4a1"
bind f8 "aug"
bind f9 "p228"
bind f10 "de"
bind f11 "m3"
bind f12 "helm"
bind ";" "FN; 9mm"
bind "p" "m249"
bind "ins" "flash"
bind "pgup" "hegren"
// poor man -|- first round alias
bind "z" "kit; flash; hegren; secammo"
bind "x" "smoke"

//DO NOT I REPEAT DO NOT REMOVE THIS NEXT LINE!!!!!

//END OF FILE
 
quick note...here are the commands available straight from the CS:S Console...slightly different than the CS variables. main example: hegrenade instead of hegren as CS was

usage: buy <item>
primammo
secammo
vest
vesthelm
defuser
nvgs
flashbang
hegrenade
smokegrenade
galil
ak47
scout
sg552
awp
g3sg1
famas
m4a1
aug
sg550
glock
usp
p228
deagle
elite
fiveseven
m3
xm1014
mac10
tmp
mp5navy
ump45
p90
m249

so i have a little rewriting to do in mine, updating variables and adding the damn "buy" before everything

OFF Topic: the "stopsound" no longer works unless the server has sv_cheats enabled...lol bastards
 
Guys did you write your own programming thingies for CS:S BETA?

Can you explain whats the point of these scripts plz? i am a n00bie at those :p
 
Back
Top