View Full Version : Dod Invisibility
Wilson [29th ID]
08-25-2006, 02:46 AM
/* DOD INVISIBILITY
Made by Wilson 29thID from Dodplugins.net
CVARS
dod_invisibility :: 1 enables invisibility, 0 disables invisibility
dod_invisibility_amt :: From 0 to 255 (0 being entirely invisible, 255 being entirely visibile)
CLIENT COMMANDS
invisibility_on :: Makes client invisible
invisibility_off :: Makes client visible
*/
UPDATED 12 SEP 2006
-Silenced footsteps when invisible (Requested by TigerMan4)
Plugin Requested by TigerMan4
diamond-optic
08-25-2006, 04:45 AM
not exactly dod specific.. but whatever lmao
PenDragon
08-25-2006, 05:33 PM
still very cool. We'll keep it in the Non-Dev plugins section.
I suggest you post it at AMXX too just in case Zor doesn't want it here since its not DoD specific. But either way, kudos points for the coolness value.
diamond-optic
08-25-2006, 06:58 PM
well we could always make a forum for non-dod specific plugins.. cuase i know alot of ppl including myself.. dont like to post stuff on the amxx forums
but then that might be kinda conflicting and seem odd idk.. or it could be labeled like a forum for non-dod specific plugins made by members here
PenDragon
08-25-2006, 08:14 PM
I dont know I thought about that too - but came to the same conflicting conclusions as you. We'll debate it in the admin chat sections.
</end derail>
Wilson [29th ID]
08-26-2006, 03:32 AM
Ah that's quite a good point - I posted it here because someone requested it in the "Request for plugins" section and I couldn't post attachments in that forum. Let me know if you'd like me to switch it up.
sparky99
08-29-2006, 01:06 AM
I think haveing a non specific section would be good. Any working example of code that works with Dod can help understand or develope code or ideas has got to be a good thing. I'ld like to see a small code examples section with comments etc so I can learn to modify plugins to my likeing as over time developers seem to make the code bigger to suit requests and it gets harder for a beginner to understand.
Wilson [29th ID]
09-12-2006, 03:25 PM
Updated to add silent footsteps when invisible, as requested by Tigerman4
=|[76AD]|= TatsuSaisei
09-12-2006, 06:10 PM
I have a suggestion that will solve the "issue" of not being DOD specific, the use of the dod_set_stamina function....
Here is a valid reasoning... if one where to go invisible in order to "catch" a supposed cheater, or to simply do whatever with it, having no footsteps is a valid addition, but the player who is invisible should also be able to "sprint" from location to location and not have to worry about slowdown... and truth be told, a noclip should also be added as well. If one was looking for an aimboter, how dumb would the cheater look getting caught auto firing into a building that is normally inaccessible....
PenDragon
09-12-2006, 06:21 PM
at that point then, you are presenting a second valid function of this plugin. That is to say, we are expecting admins to use this as either a tool to help catch cheaters or as a fun plugin.
Both are very good reasons for having this plugin in general, however I would advise to NOT force this plugin into fitting one catagory or the other. Rather, separate the dod_set_stamina functionality of it (if it ever gets added on) by a seperate amxx command or a cvar.
I.E.
invisibility_on
invisibility_off
invisibilitysprint_on
invisibilitysprint_off
=|[76AD]|= TatsuSaisei
09-12-2006, 06:24 PM
good point about setting it as an avaliable option, or even set it as a precompiler define... no dod module, no stamina setting... I was simply just throwing that out there to "resolve" any non-dod issues.... I personally love THIS site as oppossed to having to go to the "main" forum to get my code snippets, and I can appreciate when others convey this same feeling. I would hate to see good simple code snippets get tossed to the wolves because it wasn't "specific" to dod, hence I am in favor of a "generic" section of the forum as well.
PenDragon
09-12-2006, 06:42 PM
I completely understand and agree. That's why Diamond and I didn't trash this thread on the spot. We know and appreciate its value and contribution in general.
Also, I understand and appreciate your suggestion as well in trying to find a way to make this as a dod plugin.
Come to think of it, I think your suggestion of having it as a pre-compiler define is a way better idea because at that point it can easily fit into the realm of non-mod specific for the AMXX forums and mod specific enough to validate it to remain here in DoD Plugins.
Good work.
TigerMan4
10-09-2006, 10:09 AM
is there anyway this plugin can be adapted to get rid of 2 things for the user ?
1) foot step noise
2) icon over head for others to see.
I have been using this to catch cheaters on my server and it works awesome.
however , some will swtich teams to see whats going on and see the icon over your head and rat you out.
Wilson [29th ID]
10-09-2006, 02:10 PM
Updated to add silent footsteps when invisible, as requested by Tigerman4
^^ Already fixed it - redownload from my original post.
You cannot disable the icon for a specific player - icons are client-sided. You would have to force icon disabling on every player but the icons would be disabled for every player not just the invisible one.
TigerMan4
10-09-2006, 02:46 PM
Thanks a ton,
is there a plugin that just turns off footsteps ? that works ?
eg: footsteps_off ?
Box Cutter
10-09-2006, 06:47 PM
Thanks a ton,
is there a plugin that just turns off footsteps ? that works ?
eg: footsteps_off ?
You could always just use the rcon command mp_footsteps <1/0>
TigerMan4
10-09-2006, 08:30 PM
doesnt that apply to everyone though ?
not just you specificly ?
diamond-optic
10-09-2006, 08:58 PM
mp_footsteps is server wide
Black Parade
12-30-2006, 01:58 AM
Just a question if you are an admin, how exactly do you set it on someone. Like what would be the command I would put in console?
TigerMan4
12-30-2006, 03:25 AM
I run this plugin to catch cheaters , you would be amazed at how many people will shoot someone they cannot see or hear.
As for the commands , Only admins with Imunity can use it and they can only use it on themselves.
Meaning you cannot make someone else invisible , only yourself ,with this command invisibility_on
I have it bound to a key to turn it on and off , for testing cheaters. (in the last 2 days I have had 3 people fail the test big time.)
Black Parade
12-30-2006, 04:18 AM
Yeah I just figured that out thank you, and I am sure it will be helpful. I was planning on using it for training purposes along with god mode, but what you said gave me some ideas thanks. :D
strontiumdog
01-04-2007, 09:04 PM
I love this plugin...nicely done!
I modified it for a fun night on our servers to do a mass invisibility, or turn individual players on and off (using amxmodxmenu)
/* DOD INVISIBILITY
Made by Wilson 29thID from Dodplugins.net
CVARS
dod_invisibility :: 1 enables invisibility, 0 disables invisibility
dod_invisibility_amt :: From 0 to 255 (0 being entirely invisible, 255 being entirely visibile)
CLIENT COMMANDS
invisibility_on :: Makes client invisible
invisibility_off :: Makes client visible
invisibility_all_on :: Makes everyone invisible
invisibility_all_off :: Makes everyone visible
invisibility_player_on :: Makes player invisible
invisibility_player_off :: Makes player visible
*/
// Define admin level is required here (third part)
#define INVISIBLE_ADMIN ADMIN_IMMUNITY
#include <amxmodx>
#include <amxmisc>
#include <fun>
new isInvisible[33]
public plugin_init() {
register_plugin("Dod Invisibility", "1.0", "Wilson - Dodplugins.net")
register_cvar("dod_invisibility", "1")
register_cvar("dod_invisibility_amt", "0")
register_concmd("invisibility_on", "invis_on", INVISIBLE_ADMIN)
register_concmd("invisibility_off", "invis_off", INVISIBLE_ADMIN)
register_concmd("invisibility_all_on","invis_all_on", INVISIBLE_ADMIN)
register_concmd("invisibility_all_off","invis_all_off", INVISIBLE_ADMIN)
register_concmd("invisibility_player_on", "invis_player_on", INVISIBLE_ADMIN, "-<part of nick> turns a player invisible")
register_concmd("invisibility_player_off", "invis_player_off", INVISIBLE_ADMIN, "-<part of nick> turns a player visible")
register_event("ResetHUD", "reset_hud", "be")
}
public reset_hud(id) {
if(isInvisible[id])
invis_on(id,INVISIBLE_ADMIN,1)
}
public client_connect(id) {
isInvisible[id] = 0;
}
public invis_on(id,level,cid) {
if( (!get_cvar_num("dod_invisibility")) || (!cmd_access(id,level,cid,1)) )
return PLUGIN_HANDLED;
new invisamt = get_cvar_num("dod_invisibility_amt");
set_user_rendering(id,kRenderFxNone,0,0,0,kRenderT ransAlpha,invisamt);
set_user_footsteps(id, 1);
isInvisible[id] = 1;
client_print(id, print_chat, "You are now invisible.");
return PLUGIN_HANDLED;
}
public invis_off(id,level,cid) {
if( (!get_cvar_num("dod_invisibility")) || (!cmd_access(id,level,cid,1)) )
return PLUGIN_HANDLED;
set_user_rendering(id,kRenderFxNone,0,0,0,kRenderT ransAlpha,255);
set_user_footsteps(id, 0);
isInvisible[id] = 0;
client_print(id, print_chat, "You are now visible.");
return PLUGIN_HANDLED;
}
public invis_all_on(id,level,cid) {
if( (!get_cvar_num("dod_invisibility")) || (!cmd_access(id,level,cid,1)) )
return PLUGIN_HANDLED;
new invisamt = get_cvar_num("dod_invisibility_amt");
new player[32],p_total
get_players(player, p_total)
for(new i=0; i<p_total; i++)
{
set_user_rendering(player[i],kRenderFxNone,0,0,0,kRenderTransAlpha,invisamt);
isInvisible[player[i]] = 1;
client_print(player[i], print_chat, "You are now invisible.");
}
return PLUGIN_HANDLED;
}
public invis_all_off(id,level,cid) {
if( (!get_cvar_num("dod_invisibility")) || (!cmd_access(id,level,cid,1)) )
return PLUGIN_HANDLED;
new player[32],p_total
get_players(player, p_total)
for(new i=0; i<p_total; i++)
{
set_user_rendering(player[i],kRenderFxNone,0,0,0,kRenderTransAlpha,255);
isInvisible[player[i]] = 0;
client_print(player[i], print_chat, "You are now visible.");
}
return PLUGIN_HANDLED;
}
public invis_player_on(id,level,cid) {
if( (!get_cvar_num("dod_invisibility")) || (!cmd_access(id,level,cid,2)) )
return PLUGIN_HANDLED;
new invisamt = get_cvar_num("dod_invisibility_amt");
new arg[33]
read_argv(1, arg, 32)
new player = cmd_target(id, arg, 0)
new playername[33], myname[33]
get_user_name(player, playername,32)
get_user_name(id, myname, 32)
set_user_rendering(player,kRenderFxNone,0,0,0,kRen derTransAlpha,invisamt);
isInvisible[player] = 1;
client_print(player, print_chat, "You are now invisible.");
client_print(0, print_chat, "%s made %s invisible.", myname, playername);
return PLUGIN_HANDLED;
}
public invis_player_off(id,level,cid) {
if( (!get_cvar_num("dod_invisibility")) || (!cmd_access(id,level,cid,2)) )
return PLUGIN_HANDLED;
new arg[33]
read_argv(1, arg, 32)
new player = cmd_target(id, arg, 0)
new playername[33], myname[33]
get_user_name(player, playername,32)
get_user_name(id, myname, 32)
set_user_rendering(player,kRenderFxNone,0,0,0,kRen derTransAlpha,255);
isInvisible[player] = 0;
client_print(player, print_chat, "You are now visible.");
client_print(0, print_chat, "%s made %s visible.", myname, playername);
return PLUGIN_HANDLED;
}
clcmds.ini
"Make Invisible" "invisibility_player_on #%userid%" "bd" "u"
"Make Visible" "invisibility_player_off #%userid%" "bd" "u"
Nega-Force
01-23-2007, 11:49 PM
Ok. I just got my server and know nothing about this kinda stuff, but I was able to put eviladmin in my server (yeah me!). But I can't for the life of me get this to work. I need help. I have it in Amxx format (not the sma). But where does it go? Can someone give me a step by step on how to put this in? PLEASE!
-Nega-Force:cool:
TigerMan4
01-24-2007, 12:01 AM
dod_invisibiltiy.amxx or whatever its called , as with ALL plugins that have the .amxx ending , go in your plugins folder in your amxmod folder.
then you have to add the line dod_invisibility 1 to your amxx.cfg in your cfg folder in your amxmod folder
at that point...either restart your server or wait for a map change.
type amx_plugins in your consol and it should say wether or not its running
Nega-Force
01-24-2007, 01:30 AM
Ok. I did all that and it says that and it is working great! I was trying to use amx_invisibility 1 as the command...lol. But I figured it out. Thanks for the help. Quick question though: Is this how I would add all the plugins or is it different for each plugin? Thanks again.
TigerMan4
01-24-2007, 01:47 AM
pretty much everyone is the same as this.
the main variable being the cvars.
cvars go in your amxx.cfg like the dod_invisibilty 1 did
when you read the plugin post , check to see if any cvars are listed.
like with death_fade , you can set it to certain colors by changing the cvars.
also some plugins use certain tweaks in the cvar settings to set them so only admins can use them or that admins with imunity are imune from them.
Black Parade
02-05-2007, 07:05 PM
Ok I am typing amx_cvar dod_invisibility 1 into console yet it says Unknown Cvar. Any help?
Country
05-04-2007, 04:05 PM
;1722']^^ Already fixed it - redownload from my original post.
You cannot disable the icon for a specific player - icons are client-sided. You would have to force icon disabling on every player but the icons would be disabled for every player not just the invisible one.
Wilson, I love this plugin but is it possible to get rid of the overhead icon?
This is what I found on another thread about it but I can't get it too work? I know nothing about codeing:o
Code:
public plugin_init() {
// Add this line to dod_invisibility's plugin_init
register_forward( FM_AddToFullPack, "hook_AddToFullPack_post", 1 );
}
// Add this function somewhere in the plugin
public hook_AddToFullPack_post( es_handle, e, entid, host, hostflags, player, pSet ) {
if( player && isInvisible[entid] )
set_es( es_handle, ES_Team, entid + 2 );
}
Can you update the .sma so that I can just redownload it and install? You da man...thx a bunch:D
blobby
06-03-2007, 10:53 AM
This plugin is amazing it works a treat and i have actually caught a hacker with this he shot me as soon as i saw him so he must have been hacking as no one else could see me so he got caught out and that was when i was testing it so its a great plugin ++Karma
Regards
Blobby
blobby
06-29-2007, 09:54 AM
Hello there i was wondering if there was a way to make this so i can give it to only certain people by using my custom flags as some of my dumb admins are using this to get kills so if any one could tell me how i set this to a custom flag that would be great
Regards
Blobby
=]
diamond-optic
06-29-2007, 11:27 PM
Hello there i was wondering if there was a way to make this so i can give it to only certain people by using my custom flags as some of my dumb admins are using this to get kills so if any one could tell me how i set this to a custom flag that would be great
Regards
Blobby
=]
on line 13 & 14 of the sma file you'll see this:
// Define admin level is required here (third part)
#define INVISIBILE_ADMIN ADMIN_IMMUNITY
the ADMIN_IMMUNITY is the admin level used... change that to the level you want to use..
the levels can be found in /amxmodx/scripting/include/amxconst.inc (if the formatting doesnt show up right.. open it in wordpad instead of notepad.. etc..)
blobby
07-01-2007, 09:01 AM
Ok i have changed the code to this
#define INVISIBILE_ADMIN ADMIN_INVISIBILITY
As i have defined on my users ini t - invisiblity but when i try to compile it it says not a admin flag so im getting verry stck with this admin flag stuff the one weapon mod is the same that wont let me change the flag level nether is there any body out there who would change this to one of my custom flags or explain to me how the custom flags work.
Regards
Blobby XD
diamond-optic
07-01-2007, 08:51 PM
like it said... ADMIN_INVISIBILITY isnt an admin level..
the "t" flag is ADMIN_LEVEL_H
blobby
07-02-2007, 08:14 AM
Right im with you now lol i though you had to change what it said on the custom flag to what you want in the users.ini lol i fel very dumb now LMAO
Cheers dimond optic m8
Regards
Blobby
Wilson [29th ID]
07-08-2007, 11:58 PM
I now know of 2 different ways to remove the icons above the players' heads, but I've realised that the means to do that may prevent the hacker's software from picking you up also.
MRosser1901
11-23-2007, 04:13 AM
I can't get this to work, when I do amx_cvar dod_invisibility 1 it works, but How do i give a certain individual it? invisibility_on doesn't work.
Wilson [29th ID]
11-23-2007, 10:32 AM
Works for everyone else.
Make sure he has the proper admin flag.
MRosser1901
11-23-2007, 06:06 PM
Yeah I'm full admin, trying to give it to myself, can't figure out how?..
Campbell [82nd AB]
02-12-2008, 05:22 PM
Yeah I'm full admin, trying to give it to myself, can't figure out how?..
Does no one use amx_help anymore?
TigerMan4
05-04-2009, 10:13 AM
Its been since 2006 that I had to install this plugin on my server.
after re-installing it , I have found that the footsteps are back.
and I dont honestly remember how to make them stop when you are invisible.
Wilson ? was it a cvar ? or something I added to the server.cfg ?
being invisible again , doesnt help much when people can hear you running about.
thanks in advance.
Tigerman.
diamond-optic
05-05-2009, 05:35 PM
hmm looking at the code footsteps should be turned off when you enable invisibility
TigerMan4
05-05-2009, 09:31 PM
when I downloaded it again...the script file was like this.
set_user_rendering(id,kRenderFxNone,0,0,0,kRenderT ransAlpha,invisamt);
set_user_footsteps(id,1);
I compiled it and have footsteps when invisable.
so I changed it to this and recompliled it , but I see a space before the 0 , would that make it not work ?
set_user_rendering(id,kRenderFxNone,0,0,0,kRenderT ransAlpha,invisamt);
set_user_footsteps(id, 0);
but still have footsteps after a restart of the server.
diamond-optic
05-05-2009, 10:09 PM
a space wouldnt make a difference...
a value of 1 means no footsteps.. a value of 0 means there is footsteps
TigerMan4
05-05-2009, 11:57 PM
I redownloaded and recompiled and am going to try it again.
thanks D.O.
any ideas why my mapmanager by deagle , changes my maps every 2 minutes no matter what is going on ? even if just bots are there ?
TigerMan4
05-15-2009, 10:10 AM
I can still hear my own footsteps , and so can others , ugh !
bozdw
01-18-2010, 03:37 PM
hi
Whats the difference between the invisibility v aimbot_detect i want to put one on the server but not sure which is the best
are they the same ?
do they both have the logo over the head ?
is it only for aimbot ?
many thanks bozdw
kaefbaml
03-30-2010, 09:22 PM
this plugin gets an error when i compile it. i dont know what to do, any help please?
diamond-optic
03-31-2010, 08:49 PM
this plugin gets an error when i compile it. i dont know what to do, any help please?
whats the error you get? it compiles fine for me
kaefbaml
03-31-2010, 09:30 PM
wow, very weird, i just tried it again and it works... and yesterday i tried like 4 times and even copied the code of the remake on like page 3,4? compiled that too and got an error. but all seems to be working now, going to test on server right now. will let u know how it goes.. thnx
TigerMan4
07-08-2010, 10:10 AM
A new problem just started with this plugin and it makes no sense to me.
it has been working since I installed it years ago...no hitches.
now out of the blue...at the end of each round...if you are inisable...you become visable again...but your footsteps stay gone.
also you can your bind...and your screen says you are invisable...but you arent...but your footsteps are gone....sometimes you have to hit the bind twice to get it to make you go away....and sometimes...you can hit the bind 3 or so times...and you come back....its crazy.
but I have to ask people on my team if I am or Not...cuz my footsteps stay gone...but I dont.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.