General > Developers Corner
ULX and TTT
Storm:
I think this probably can't be done but is there anyway I can change one of the lua files in the gamemode TTT to give only traitors or innocents access to a ULX command. For example, if a player spawns as a traitor, then he can use ulx jail?
Decicus:
I'm not gonna be much of help, but why would you even let them use the jail command?
Storm:
I don't. I just used that as an example. It's the first ULX command that came to my mind.
Megiddo:
It can be done, you'd just check which state a player is in before continuing to process the command. I'd recommend modifying it with one of the available hooks.
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
[0] Board index
Go to full version