Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: UnknownDog on June 07, 2018, 02:58:53 AM
-
Hello there, i'm looking for a way to bind all the ulx commands to a specific job only. and not a rank.
is there a script already made for this or what?
i have a code however this code needs to be applied for everyyyyy command and what if ulx has an update i would be required to redo all the coding again which is a pain and 2 much work.
so can anyone help me.
-
ULX does not do this, nor do we plan to add this in the future, as it would go against our simplicity motto. (We keep ULX compatible with the most users in mind and don't cater to gamemode specific features)
We do have a way to hook commands and deny them without modifying your ULX code. Check out the documentation on our hooks:
http://ulyssesmod.net/docs/files/lua/ulib/shared/defines-lua.html#ULibCommandCalled
with this, you could check the calling player's team/job and then not allow the command if they weren't in the proper team/job.
-
alright thanks anyway. could you please maybe teach me how i'm a bit new to this and i'm trying to learn.