Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Darkblizzard on March 14, 2015, 07:34:17 AM

Title: Cloak
Post by: Darkblizzard on March 14, 2015, 07:34:17 AM
Hello,
There seems to be an issue with my cloak. Whenever you cloak, your name above your head is still showing, whenever you have a physic gun out it reveals the brightness of it, and when you begin to type something it shows the message icon above your head.
How are you able to make it completely cloak so none of this happens?
The codes below.


Code: [Select]
function ulx.cloak( calling_ply, target_plys, amount, should_uncloak )
if not target_plys[ 1 ]:IsValid() then
Msg( "You are always invisible.\n" )
return
end

amount = 255 - amount

for i=1, #target_plys do
ULib.invisible( target_plys[ i ], not should_uncloak, amount )
end

if not should_uncloak then
ulx.fancyLogAdmin( calling_ply, "#A cloaked #T by amount #i", target_plys, amount )
else
ulx.fancyLogAdmin( calling_ply, "#A uncloaked #T", target_plys )
end
end
local cloak = ulx.command( CATEGORY_NAME, "ulx cloak", ulx.cloak, "!cloak" )
cloak:addParam{ type=ULib.cmds.PlayersArg, ULib.cmds.optional }
cloak:addParam{ type=ULib.cmds.NumArg, min=0, max=255, default=255, hint="amount", ULib.cmds.round, ULib.cmds.optional }
cloak:addParam{ type=ULib.cmds.BoolArg, invisible=true }
cloak:defaultAccess( ULib.ACCESS_ADMIN )
cloak:help( "Cloaks target(s)." )
cloak:setOpposite( "ulx uncloak", {_, _, _, true}, "!uncloak" )
Title: Re: Cloak
Post by: BobikHere on March 14, 2015, 07:41:10 AM
If you use DarkRP , I'd suggest you to use the FAdmin Cloak.
Title: Re: Cloak
Post by: Darkblizzard on March 14, 2015, 07:58:10 AM
It is DarkRP, but I'm using ulx for the cloak. Not really sure about how to use the FAdmin Cloak.

I prefer to use ulx.
Title: Re: Cloak
Post by: JamminR on March 14, 2015, 10:41:30 AM
And fadmin often breaks ulx.
We often recommend NOT using Fadmin due to the conflicts.
It may be DarkRP breaks our cloak too. Give some time, perhaps we'll be able to look into it.