Author Topic: Ulx can only be used when in a special job  (Read 1908 times)

0 Members and 1 Guest are viewing this topic.

Offline Jimmy Mann

  • Newbie
  • *
  • Posts: 10
  • Karma: -1
Ulx can only be used when in a special job
« on: February 09, 2014, 11:39:17 PM »
Hello!

So basically I would like to know if I can put in the code of the commands or somewhere in ULX and make it so you have to be the job (DarkRP) 'Admin' to use commands.
I would also like to know if I can make it so when they become the job 'Admin' it enables god and when they go to another job it disables it.

Thanks in advance!

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ulx can only be used when in a special job
« Reply #1 on: February 10, 2014, 03:13:37 PM »
The ULibCommandCalled hook is perfect for the first part. The second part would require more knowledge on DarkRP than I possess.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ulx can only be used when in a special job
« Reply #2 on: February 10, 2014, 07:22:19 PM »
Though Megiddo gives basic answer - To answer the questions as you put them would not fit in this area of the forum,
There is no 'make this happen' area to put DarkRP commands in ulx.
You'd have to know how to modify Lua for your own purposes, which, would fit better in Developers Corner if you know Lua, or Off-Topic if you're going to ask someone to do it for you.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Jimmy Mann

  • Newbie
  • *
  • Posts: 10
  • Karma: -1
Re: Ulx can only be used when in a special job
« Reply #3 on: February 10, 2014, 09:19:04 PM »
Ok cool thanks for the help guys. I will go on the DarkRP forums for some help on the second part. Does anyone know how to create this or do they have a script I can use?
« Last Edit: February 11, 2014, 06:29:44 AM by Jimmy Mann »