ULX

Author Topic: BINDINGS  (Read 3108 times)

0 Members and 1 Guest are viewing this topic.

Offline darkdeath

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 2
BINDINGS
« on: February 16, 2006, 03:02:02 AM »
ok another question becouse i am working on a big project to make a cool plugin for ulx... and update to 2.0 if its out...
i wan't to know how to make this code below right:

Quote
      if _GetConVar_Bool( "bind slot" ) then
         addOption( userid, "Bind 1/2/3/4/5/6/7/8 to 1/2/3/4/5/6/7/8", "bind 1 slot1", "bind 2 slot2", "bind 3 slot3", "bind 4 slot4", "bind 5 slot5", "bind 6 slot6", "bind 7 slot7", "bind 8 slot8", ACCESS_CVAR )   
      else
         addOption( userid, "Bind 1/2/3/4/5/6/7/8 to 1/2/3/4/5/6/7/8", "bind 1 slot1", "bind 2 slot2", "bind 3 slot3", "bind 4 slot4", "bind 5 slot5", "bind 6 slot6", "bind 7 slot7", "bind 8 slot8", ACCESS_CVAR )   
      end

how to set it like this:
Bind On

so that key 7 will work as an option to choose...
its not bad if there is only a on button it don't have to be set as off
only on..

thx in forward...
i think ULX U GUY ROCK !...
ure cool becouse i always get an answer !

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: BINDINGS
« Reply #1 on: February 16, 2006, 06:19:13 AM »
You can't execute client commands, only server commands
Experiencing God's grace one day at a time.

Offline darkdeath

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 2
Re: BINDINGS
« Reply #2 on: February 16, 2006, 01:08:13 PM »
thx man :) ;D
now i know more