PDA

View Full Version : How to BIND a command with a double bracket ? PLEASE HELP!



G-Stuff002
29th July 2019, 21:43
Hello everyone, help me please, i do not understand how to bind a command in which there is already a bracket (quotes).


It's clear command:

ent_fire weapon_* addoutput "classname weapon_knifegg"


I make like that:

bind "k" "ent_fire weapon_* addoutput "classname weapon_knifegg""


If I remove the brackets(quotes) here -"classname weapon_knifegg", the command will not work.

vanfreddy
30th July 2019, 04:55
u can try this
bind k "ent_fire weapon_* addoutput classname weapon_knifegg"
or like this
bind k 'ent_fire weapon_* addoutput "classname weapon_knifegg"'
not tested
or u can make a custom cvar bind it and then do it in a function

G-Stuff002
30th July 2019, 08:07
vanfreddy, Thank's!!

I make a custom cvar (knifegg.cfg) and bind this cfg file with command for "k"