Code:
// Bindable Key Names
//
// ESCAPE  F1  F2  F3  F4  F5  F6  F7  F8  F9  F10  F11  F12                                                                             PAUSE
//
// `   1  2  3  4  5  6  7  8  9  0  -  =  BACKSPACE          INS  HOME  PGUP                               KP_SLASH           *        KP_MINUS
// TAB  Q  W  E  R  T  Y  U  I  O  P  [  ]  \                 DEL  END   PGDN                KP_HOME       KP_UPARROW       KP_PGUP     KP_PLUS
//       A  S  D  F  G  H  J  K  L  ;  '     ENTER                                         KP_LEFTARROW       KP_5       KP_LEFTARROW
// SHIFT  Z  X  C  V  B  N  M  ,  .  /        SHIFT                UPARROW                    KP_END      KP_DOWNARROW      KP_PGDN     KP_ENTER
// CTRL   ALT     SPACE        ALT   CTRL             LEFTARROW   DOWNARROW   RIGHTARROW      KP_INS                        KP_DEL
//
// Mouse Key Names
//
// MOUSE1  MOUSE2  MOUSE3  MOUSE4  MOUSE5
// MWHEELUP  MWHEELDOWN
alias "+bset" "bind kp_home getdown; bind kp_uparrow 10-43; bind kp_pgup 10-53"
alias "-bset" "bind kp_home 10-4; bind kp_uparrow 10-15; bind kp_pgup 10-22"
alias "10-4" "say /com 10-4"
alias "10-15" "say /com 10-15 (Suspect in custody)"
alias "10-22" "say /com 10-22 (Disregard)"
alias "10-43" "say /com 10-43 (Medic requested)"
alias "10-53" "say /com 10-53 (suspect down)"
alias "10-57" "say /com 10-57 (Shots fired)"
alias "10-76" "say /com 10-76 (En-route)"
alias "10-80" "say /com 10-80 (In Pursuit)"
alias "10-97" "say /com 10-97 (Arrived)"
alias "10-108" "say /com 10-108 (Officer down)"
alias "11-99" "say /com 11-99 (Officer needs assistance)"
alias "getdown" "say shout this is the police, get down on the ground now, or we will use force"
bind "alt" "+bset"
bind "kp_home" "10-4"
bind "kp_uparrow" "10-15"
bind "kp_pgup" "10-22"
You can put this in a file called RP_Binds.cfg (or whatever you want) and put "exec RP_Binds.cfg" in your autoexec.cfg and this will be executed on each launch.
It can also be launched manually by typing that command in the console "exec RP_Binds.cfg"
You can also have multiple configs for each server, or each job, or whatever you want.
You should be able to see how to add additional keys to use this toggle with, by looking at the above example. To use this, according to this example, you would need to hold down alt, then pressing kp_home would make you say "say shout this is the police, get down on the ground now, or we will use force" and when you let go of alt, pressing kp_home would make you say 10-4 over the radio.
The +bset can be any key you want. alt seems to be the easiest in my experience, as it was the way I learned to do it when the leader in my old CS 1.5 clan taught us for doing buyscripts.
If you want to bind this to shift for example, or other keys bound to a +command toggle, look below:
Code:
// Bindable Key Names
//
// ESCAPE  F1  F2  F3  F4  F5  F6  F7  F8  F9  F10  F11  F12                                                                             PAUSE
//
// `   1  2  3  4  5  6  7  8  9  0  -  =  BACKSPACE          INS  HOME  PGUP                               KP_SLASH           *        KP_MINUS
// TAB  Q  W  E  R  T  Y  U  I  O  P  [  ]  \                 DEL  END   PGDN                KP_HOME       KP_UPARROW       KP_PGUP     KP_PLUS
//       A  S  D  F  G  H  J  K  L  ;  '     ENTER                                         KP_LEFTARROW       KP_5       KP_LEFTARROW
// SHIFT  Z  X  C  V  B  N  M  ,  .  /        SHIFT                UPARROW                    KP_END      KP_DOWNARROW      KP_PGDN     KP_ENTER
// CTRL   ALT     SPACE        ALT   CTRL             LEFTARROW   DOWNARROW   RIGHTARROW      KP_INS                        KP_DEL
//
// Mouse Key Names
//
// MOUSE1  MOUSE2  MOUSE3  MOUSE4  MOUSE5
// MWHEELUP  MWHEELDOWN
alias "+walkset" "+speed; bind kp_home getdown; bind kp_uparrow 10-43; bind kp_pgup 10-53"
alias "-walkset" "-speed; bind kp_home 10-4; bind kp_uparrow 10-15; bind kp_pgup 10-22"
alias "10-4" "say /com 10-4"
alias "10-15" "say /com 10-15 (Suspect in custody)"
alias "10-22" "say /com 10-22 (Disregard)"
alias "10-43" "say /com 10-43 (Medic requested)"
alias "10-53" "say /com 10-53 (suspect down)"
alias "10-57" "say /com 10-57 (Shots fired)"
alias "10-76" "say /com 10-76 (En-route)"
alias "10-80" "say /com 10-80 (In Pursuit)"
alias "10-97" "say /com 10-97 (Arrived)"
alias "10-108" "say /com 10-108 (Officer down)"
alias "11-99" "say /com 11-99 (Officer needs assistance)"
alias "getdown" "say shout this is the police, get down on the ground now, or we will use force"
bind "shift" "+walkset"
bind "kp_home" "10-4"
bind "kp_uparrow" "10-15"
bind "kp_pgup" "10-22"
If you wanted to do it on another key, one that isn't bound to a +/-command, like firemode, or useitems, only put that command at the begining of either the alias for the +bset or the -bset, not both.
_________________
Dest Romano wrote:
Internet relationships suck really bad
Kanae Ryuden wrote:
My internets are going f**ked
