General > Developers Corner
ulx cloak at the start of the round
(1/1)
ozzyos2009:
I'm making a custom round on TTT that'll cloak traitors. I've tried using ply:concommand, RunConsoleCommand etc.
Wasn't working so I looked over at the ULIB for invisible and I just don't understand it.
Is there a simple way to make traitors cloaked?
Something that would look like this:
--- Code: ---for _,ply in pairs(player.GetAll() ) do
if ply:GetRole() == ROLE_TRAITOR then
v:ConCommand("ulx", "cloak", "^", 225)
end
end
--- End code ---
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
[0] Board index
Go to full version