Results 11 to 20 of 26

Thread: key on keyboard

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    Brigadier General
    Join Date
    Oct 2012
    Posts
    998
    Thanks
    20
    Thanked 590 Times in 390 Posts
    Put the bind in a config file; execute the config file on the player when they are either in a team for the first time (it wont work onPlayerConnect), or when they spawn. Put the config file either on your server in raw format, or put it in your IWD file.

    This is the config file I use to bind keys:

    Code:
    bind I "openScriptMenu clientcmd ibutton"
    bind L "openScriptMenu clientcmd lbutton"
    bind M "openScriptMenu clientcmd mbutton"
    bind K "openScriptMenu clientcmd kbutton"
    I name the config file "custombuttons.cfg".

    This is the code I use to execute the config file:

    Code:
    setUpButtons()
    {
    	self ExecClientCommand( "exec custombuttons.cfg" );
    }

  2. The Following 2 Users Say Thank You to Tally For This Useful Post:

    filthy_freak_ (29th May 2014),Ni3ls (29th May 2014)

Posting Permissions

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