Ulysses
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Ulysses
»
General
»
Developers Corner
»
ULX and TTT
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: ULX and TTT (Read 2203 times)
0 Members and 1 Guest are viewing this topic.
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?
Logged
Decicus
Hero Member
Posts: 552
Karma: 81
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?
Logged
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.
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.
Logged
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
.
Logged
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
Back