PDA

View Full Version : Multiple command on bind?


imported_m0g
12-17-2003, 07:58 AM
I know how to bind a command to a key, but how do I do a multiple command like:

set scr_allow_thompson 0 ; set scr_allow_sten 1 ; set scr_allow_springfield 1

Hammer
12-17-2003, 08:06 AM
set x "set scr_allow_thompson 0; set scr_allow_sten 1; set scr_allow_springfield 1"

bind KEY "vstr x"

imported_m0g
12-17-2003, 08:19 AM
Thanks for that Hammer! :)

imported_m0g
12-17-2003, 08:53 AM
Okay, the above works fine for a keybind, but would this be possible to do if i type it straight into the console? It must be one line of code though, because im trying to implement a feature in a mirc script im working on and it wont allow me to do more then one line... :?