PDA

View Full Version : binding two commands to a key


si][ent
18th June 2002, 22:43
how do you bind two commands to a key? i want to bind w "+forward", and "admin_vote_map de_dust" for an anti vote kick script. how would you do this? :classic:

sAtAn
18th June 2002, 23:49
moron! it's easy bind f "+forward;admin_vote_map de_dust" that should work just fine

o({})o
19th June 2002, 01:05
yes, except that will not be very workable.....try this:

alias +movevote "+forward;admin_vote_map de_dust"
alias -movevote "-forward"
bind f "+movevote"

NASTE
19th June 2002, 07:39
No need to get angry satan ;)

si][ent
19th June 2002, 09:41
thanks you all, sorry that im a moron...im trying to learn though:classic:

Also_w00t
23rd June 2002, 01:28
Originally posted by si][ent
thanks you all, sorry that im a moron...im trying to learn though:classic:

hey you arent the only one...

o({})o
23rd June 2002, 01:35
http://zmalloc.counter-strike.net/tutorials/#General << All scripting stuff you will ever need!

Goddess
30th June 2002, 04:55
Originally posted by o({})o
yes, except that will not be very workable.....try this:

alias +movevote "+forward;admin_vote_map de_dust"
alias -movevote "-forward"
bind f "+movevote"

Hello, you dont need it that complicated, if you made something like bind x "+forward;+left" then you would need the extra alias, but with bind x "+forward;admin_vote_map de_dust" you dont need it because the engine will always start, stop the first command with a + but not the second.

o({})o
30th June 2002, 05:01
i am simply making it so that he can modify it all he wants without having any problems.

bigmike4478
21st March 2003, 23:31
hey i am really intrested in getting two keys to bind togeather i use my mouse to run adn fire i use my left ctrl key for strafe left and my left alt to strafe right i would like to put lean left and strafe left on the same CTRL key .. is this possible ..

Malicious
21st March 2003, 23:37
that would mean that every time you hit it you would go forward and then hit again and it would cancel it.

I have a server and I just bound the map hanges to the funtion keys or to the kp keys. I think that would work better for you.

Jessen
22nd March 2003, 00:15
Why don't you just play like the rest of us, with WSAD?
Its a hundred times 1337er

bigmike4478
22nd March 2003, 00:18
hey WiSH i was leet o nuff to us wasd but i cant :)
is there a way to bind lean and strafe to my left CTRL key

[p][ultra]
23rd March 2003, 03:39
sry wrong posting

Phlox
23rd March 2003, 18:20
alias ***** "command1;command2;command3..."
bind yourkey *****

that's all .