Results 1 to 3 of 3

Thread: How to BIND a command with a double bracket ? PLEASE HELP!

  1. #1
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    193
    Thanks
    39
    Thanked 105 Times in 103 Posts

    How to BIND a command with a double bracket (quotes) ? PLEASE HELP!

    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.
    Last edited by G-Stuff002; 29th July 2019 at 22:47.

  2. #2
    Private
    Join Date
    Jun 2013
    Posts
    58
    Thanks
    19
    Thanked 28 Times in 22 Posts
    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

  3. The Following User Says Thank You to vanfreddy For This Useful Post:

    G-Stuff002 (30th July 2019)

  4. #3
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    193
    Thanks
    39
    Thanked 105 Times in 103 Posts
    vanfreddy, Thank's!!

    I make a custom cvar (knifegg.cfg) and bind this cfg file with command for "k"
    Last edited by G-Stuff002; 30th July 2019 at 08:27.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •