Author Topic: ULX and TTT  (Read 2203 times)

0 Members and 1 Guest are viewing this topic.

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
ULX and TTT
« on: September 12, 2013, 03:03:41 AM »
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?

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: ULX and TTT
« Reply #1 on: September 12, 2013, 04:06:26 AM »
I'm not gonna be much of help, but why would you even let them use the jail command?
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: ULX and TTT
« Reply #2 on: September 12, 2013, 04:13:25 AM »
I don't. I just used that as an example. It's the first ULX command that came to my mind.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX and TTT
« Reply #3 on: September 12, 2013, 05:08:05 AM »
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.
Experiencing God's grace one day at a time.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given