Jump to content

help with buy menus


Kurtz

Recommended Posts

i saw a post sayin how easy it is to make and bind buy scripts in 1.6.

Well its not easy enough

 

ok------- mp5 ,full armor,he,2 fb,smoke

 

how would i write that up and where would i need to put it for it to work and stay.

 

 

 

thx for any help

Link to comment
Share on other sites

Here's the process. You gotta create alias names for all the menu key presses, then each combination of key presses has to be named. Here's mine, you should be able to get the idea. Now, mine are old and still leave the last menu open, so I always have to press my "v" key (which is like 0) I'm sure someone has a cleaner version.

 

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 ms0 "menuselect 0"

 

alias "mp5" "buy; ms3; ms2; ms0; buy; ms6; ms0"

bind p mp5

alias colt "buy; ms4; ms3; ms0; buy; ms6; ms0"

bind k colt

alias nade "buy; ms8; ms4; ms0; ms0"

alias armor "buy; ms8; ms2; ms0; buy; ms8; ms1; ms0"

bind ' armor

 

alias +cjump "+jump; +duck"

alias -cjump "-jump; -duck"

bind "space" "+cjump"

 

You can see I have the mp5, colt, nade, and armor scripted.

Link to comment
Share on other sites

MaleModel actually posted this a while back and it works!

 

Buy scripts are now much simpler than previous versions of cstrike. All you have to do now is bind a key to the given alias. Example: buy "F5" "ak47". The great thing about this is that you can have the same key bound to purchase an AK or an M4, no matter which team you're on it'll purchase the correct weapon. Example: buy "F5" "ak47; m4a1"

 

Here is a listing of the known aliases:

Weapon/Item Aliases Radio Aliases

pistols

glock

usp

p228

nighthawk

elites

fn57 smg

mac10

tmp

mp5

ump45

p90

shotguns

m3

xm1014 ammo

primammo

secammo

rifles

galil

ak47

scout

sg552

awp

g3sg1

famas

m4a1

aug

sg550 equipment

vest

vesthelm

flash

hegren

sgren

nvgs

defuser

shield

machine gun

m249

Radio1

coverme

takepoint

holdpos

regroup

followme

takingfire Radio2

go

fallback

sticktog

getinpos

stormfront

report

Radio3

roger

enemyspot

needbackup

sectorclear

inposition

reportingin

getout

negative

enemydown

 

 

 

Example of my buy script:

bind "KP_HOME" "hegren"

bind "KP_UPARROW" "vest"

bind "KP_PGUP" "vesthelm"

bind "KP_LEFTARROW" "flash"

bind "KP_5" "usp"

bind "KP_RIGHTARROW" "nighthawk"

bind "KP_END" "defender; famas"

bind "KP_DOWNARROW" "m4a1; ak47"

bind "KP_PGDN" "awp"

bind "KP_ENTER" "buyammo2"

bind "KP_INS" "defuser"

bind "KP_DEL" "mp5"

bind "KP_SLASH" "hegren; flash; sgren"

bind "KP_MINUS" "sgren"

bind "KP_PLUS" "primammo"

 

This is what I have in my config:

bind "F1" "mp5; primammo"

bind "F2" "m4a1; ak47; primammo"

bind "F3" "defender; famas; primammo"

bind "F4" "awp; nighthawk; primammo; secammo"

bind "F5" "snapshot"

bind "F6" "defuser"

bind "F7" "vest"

bind "F8" "vesthelm"

bind "F9" "hegren; flash; flash"

bind "F10" "quit prompt"

bind "INS" "+klook"

bind "PGDN" "defuser"

bind "PGUP" "nighthawk; secammo"

bind "END" "centerview"

bind "KP_UPARROW" "hegren"

bind "KP_LEFTARROW" "flash"

bind "KP_RIGHTARROW" "sgren"

bind "KP_DOWNARROW" "usp; secammo"

bind "KP_ENTER" "primammo"

bind "KP_PLUS" "buyammo2"

Link to comment
Share on other sites

The aliases are already built into the game. Here's my buy scripts.

 

bind "F3" "m4a1"

bind "F4" "ak47"

bind "F5" "snapshot"

bind "F6" "deagle"

bind "F7" "mp5"

bind "F8" "awp"

bind "F9" "vesthelm"

bind "F10" "hegren"

bind "F11" "flash"

bind "F12" "defuser"

Link to comment
Share on other sites

Thx for the help

 

so does this look right and f1 should buy all these correct? ak or colt depending what team you on,full armor,nade,2 flashand smoke

 

bind "f1" "ak47;m4a1;vesthelm;hegren;flash;flash;sgren"

 

 

and as x asked where do you save this?

Link to comment
Share on other sites

Thx for the help

 

so does this look right and f1 should buy all these correct? ak or colt depending what team you on,full armor,nade,2 flashand smoke

 

bind "f1" "ak47;m4a1;vesthelm;hegren;flash;flash;sgren"

 

 

and as x asked where do you save this?

I think you need the spaces, like this:

 

bind "f1" "ak47; m4a1; vesthelm; hegren; flash; flash; sgren"

Link to comment
Share on other sites

Thx for the help

 

so does this look right and f1 should buy all these correct? ak or colt depending what team you on,full armor,nade,2 flashand smoke

 

bind "f1" "ak47;m4a1;vesthelm;hegren;flash;flash;sgren"

 

 

and as x asked where do you save this?

I think you need the spaces, like this:

 

bind "f1" "ak47; m4a1; vesthelm; hegren; flash; flash; sgren"

The spaces aren't necessary, however you might want to add some ammo in there... just a thought.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...