Author Topic: Cloak  (Read 1957 times)

0 Members and 1 Guest are viewing this topic.

Offline Darkblizzard

  • Newbie
  • *
  • Posts: 39
  • Karma: 1
Cloak
« 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" )

Offline BobikHere

  • Newbie
  • *
  • Posts: 13
  • Karma: -2
Re: Cloak
« Reply #1 on: March 14, 2015, 07:41:10 AM »
If you use DarkRP , I'd suggest you to use the FAdmin Cloak.

Offline Darkblizzard

  • Newbie
  • *
  • Posts: 39
  • Karma: 1
Re: Cloak
« Reply #2 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.
« Last Edit: March 14, 2015, 08:03:03 AM by Darkblizzard »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Cloak
« Reply #3 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming