Ulysses

General => Developers Corner => Topic started by: Jimmy Mann on February 09, 2014, 11:39:17 PM

Title: Ulx can only be used when in a special job
Post by: Jimmy Mann 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!
Title: Re: Ulx can only be used when in a special job
Post by: Megiddo on February 10, 2014, 03:13:37 PM
The ULibCommandCalled hook (http://ulyssesmod.net/docs/files/lua/ulib/shared/defines-lua.html#ULibCommandCalled) is perfect for the first part. The second part would require more knowledge on DarkRP than I possess.
Title: Re: Ulx can only be used when in a special job
Post by: JamminR 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.
Title: Re: Ulx can only be used when in a special job
Post by: Jimmy Mann 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?