Author Topic: Admin Cloak  (Read 2054 times)

Use AdminX, it has a cloak function that hides your player and your name, really far away and really close, not in between for some reason.
As said in an entire paragraph above, I am aware of this add-on and this is not what I want. I need something that can be key-binded.

you could just make the keybind yourself
Code: [Select]
$remapdivision[$remapcount] = "Cloak";
$remapname[$remapcount] = "Activate";
$remapcmd[$remapcount] = "cloakme";
$remapcount++;
function cloakme(%a)
{
if(%a)
commandtoserver('cloak');
}
that makes it so when you press the keybind, it's like typing /cloak

you could just make the keybind yourself
Code: [Select]
$remapdivision[$remapcount] = "Cloak";
$remapname[$remapcount] = "Activate";
$remapcmd[$remapcount] = "cloakme";
$remapcount++;
function cloakme(%a)
{
if(%a)
commandtoserver('cloak');
}
that makes it so when you press the keybind, it's like typing /cloak
Does it still require you to ctrl k to uncloak?

if that's how you normaly uncloak, then yeah...
why would you think this changes anything? it's just keybinding /cloak

if that's how you normaly uncloak, then yeah...
why would you think this changes anything? it's just keybinding /cloak
Can you make it so you can turn it on and off without having to ctrl k? I can't script so I have no clue what I am doing.

It would be super helpful if you posted the updated add-on here.

Code: [Select]
$remapdivision[$remapcount] = "Cloak";
$remapname[$remapcount] = "Activate";
$remapcmd[$remapcount] = "cloakme";
$remapcount++;
$remapname[$remapcount] = "Deactivate";
$remapcmd[$remapcount] = "uncloakme";
$remapcount++;
function cloakme(%a)
{
if(%a)
commandtoserver('cloak');
}
function uncloakme(%a)
{
if(%a)
commandtoserver('Self Delete');
}

Now what do I do? Remember, I am handicapped when it comes to anything scripting or add-on stuff.

go to addons, make a folder labled client_cloak
make a client.cs file and paste that into it
make a description.txt and write some stuff in it
go ingame and set the keybinds
go to a server with the cloak and test it

Well, you could always remove the admin ball emitter so the admin ball doesn't emit anything.
You would be invisible and be able to go through bricks.

Well, you could always remove the admin ball emitter so the admin ball doesn't emit anything.
How do I do this?

go to addons, make a folder labled client_cloak
make a client.cs file and paste that into it
make a description.txt and write some stuff in it
go ingame and set the keybinds
go to a server with the cloak and test it
I tested it and the activate doesn't do anything (I don't disappear) and the deactivate just kills me.

how do you cloak, /cloak?
if so, then you're doing something wrong

hey guys
serverCmdCloak (aka /cloak) doesn't magically appear unless you have a server mod running it.

Blok, phflack gave you code for a keybind. nothing else.

how do you cloak, /cloak?
if so, then you're doing something wrong
No, I set it in controls to "z" for activate and "x" to deactivate. The "z" did nothing when I hit it, but the "x" killed me, like ctrl k.

hey guys
serverCmdCloak (aka /cloak) doesn't magically appear unless you have a server mod running it.

Blok, phflack gave you code for a keybind. nothing else.
Can you do it? =D

Use AdminX, it has a cloak function that hides your player and your name, really far away and really close, not in between for some reason.
Yup.