Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

Hide admins spec

by npk06 · 2006-12-02 · 29 replies · 10079 views · 31 downloads

Read the thread (30 posts)

From the first post

Hi,
rn
rndo you think that it would be possible to hide from the player lists spectating admins ? Upon activation, the plugin could send a fake disconnection message, switch the admin that activated it into spec mode while hiding him from non admin UI. The first part is pretty easy but I'm rather unsure wether it is possible to manipulate player lists...
rn
rnIt would be used for discrete cheater detection and recording purposes
rn
rnThanks a lot :cool:

Added later in the thread

dod_secretspectate.sma v1.0 569 B 28 dl Download Compile
mespec.sma Plugin Source 3 KB 3 dl Download Compile

The thread

All 30 posts from 11 people on Hide admins spec, kept as they were written.

N npk06
started this thread
Posts: 6
Threads: 2
Joined: Dec 2006
12-02-2006, 12:09 PM #1

Hi,rnrndo you think that it would be possible to hide from the player lists spectating admins ? Upon activation, the plugin could send a fake disconnection message, switch the admin that activated it into spec mode while hiding him from non admin UI. The first part is pretty easy but I'm rather unsure wether it is possible to manipulate player lists...rnrnIt would be used for discrete cheater detection and recording purposesrnrnThanks a lot :cool:

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
12-02-2006, 07:01 PM #2

im not sure how or if you can modify the scoreboard.. would be nice tho..nnwhat i do for my server tho.. is i have the name & team change messages blocked for me.. so I can change my name and join spec without ppl noticing it.. at least noticing it as easily :-)nni use THIS plugin to hide the msgs

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
12-03-2006, 03:30 AM #3

This thing allows you to type in console: gospecrnand it automatically puts you in spectators with no message. I tried removing the score board part but it would take a while to get it going.

C cccpsmiley
posted here
Posts: 10
Threads: 2
Joined: Apr 2006
12-03-2006, 05:48 PM #4

diamond cnt u edit ur plugin to where instead of saying Admin with Flag a joined spec to Saying ADMIN LEFT THE GAME where in reality u went to spec?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
12-03-2006, 07:22 PM #5

well that wouldnt really fit in with the plugin...nnbut to make my own msgs lol.. i use a plugin (might be part of amx_slash or something) that adds the "/me" function of IRC to dod.. so i can type "/me has left the game" and it will print "diamond-optic has left the game"

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
12-03-2006, 10:15 PM #6

I have one called emote that does exactly that, I found it on the amxmodx forums.rnrnI type /emote has left the game and it prints out:rnTupinambis has left the game..rnrnrnDo a search over there for that if you are interested.

N npk06
started this thread
Posts: 6
Threads: 2
Joined: Dec 2006
12-08-2006, 02:33 PM #7

Hi,rnrnthank you guys for your answers. I'm gonna check your plugin Wilson ;) rnrnThanks a lot

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
12-08-2006, 05:43 PM #8

I tried this plugin and works great.

H Hood [10th MD]
posted here
Posts: 84
Threads: 7
Joined: Nov 2006
04-16-2007, 09:01 PM #9

Wilson got a good start going there, I will see if I can find anything to help and post later on tonight, this could be a great tool for keeping an eye on unit/clan members, as well as those aggravating hackers.

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
04-17-2007, 08:39 PM #10

hey wilson.. what about sending like a PTeam message after joining spec.. would that keep you on 'spectators' but show your name on whatever team you passed thru the message?

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
04-22-2007, 04:50 PM #11

Actually that just may work. PTeam usually does more than you'd like it to do, but in a situation like this it may work. Or just blocking it in the first place.

H Hood [10th MD]
posted here
Posts: 84
Threads: 7
Joined: Nov 2006
04-23-2007, 01:26 PM #12

So just keep you in the scoreboard on some team but you stay in spec?rnrnI like it.rnrnSimilar to admin_spectate_esp, but without all the extra coding to render the lines, specific users, etc.rnrnPossibly we could simply borrow some of that code to do the hiding?

J jondoe
posted here
Posts: 129
Threads: 6
Joined: Aug 2005
04-24-2007, 07:29 PM #13

I noticed the flag for admin use with this plugin is H.rnI dont give any other admins the the config flag.rnWhen i try to compile this with any other flag besides H, I get errors and it won't compile. Is there a way to give all my admins the power to use it.rnrn// Define admin level is required here (third part)rn#define INVISIBILE_ADMIN ADMIN_LEVEL_H

H Hood [10th MD]
posted here
Posts: 84
Threads: 7
Joined: Nov 2006
04-24-2007, 07:49 PM #14

Make sure the flag you replace it with exists...rnI.e. Use ADMIN_KICK, not ADMIN_LEVEL_KICK (which I once almost did),rnTry ADMIN_LEVEL_A.rnThere's no reason, code-wise why that wouldn't work.rnrnAlso, as a note, in a previous thread, someone had suggested that sometimes amx drops that flag (which is the "t" flag in users.ini) and so it's often a better idea not to use it, for that reason, I'd say try ADMIN_LEVEL_C, which I've never had issues with, or any other one for that matter. Good luck. Post more specific compiling results if you have errors again.

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
04-24-2007, 09:53 PM #15

here's all of them:nn

#define ADMIN_ALL 0 /* everyone */n#define ADMIN_IMMUNITY (1<<0) /* flag "a" */n#define ADMIN_RESERVATION (1<<1) /* flag "b" */n#define ADMIN_KICK (1<<2) /* flag "c" */n#define ADMIN_BAN (1<<3) /* flag "d" */n#define ADMIN_SLAY (1<<4) /* flag "e" */n#define ADMIN_MAP (1<<5) /* flag "f" */n#define ADMIN_CVAR (1<<6) /* flag "g" */n#define ADMIN_CFG (1<<7) /* flag "h" */n#define ADMIN_CHAT (1<<8) /* flag "i" */n#define ADMIN_VOTE (1<<9) /* flag "j" */n#define ADMIN_PASSWORD (1<<10) /* flag "k" */n#define ADMIN_RCON (1<<11) /* flag "l" */n#define ADMIN_LEVEL_A (1<<12) /* flag "m" */n#define ADMIN_LEVEL_B (1<<13) /* flag "n" */n#define ADMIN_LEVEL_C (1<<14) /* flag "o" */n#define ADMIN_LEVEL_D (1<<15) /* flag "p" */n#define ADMIN_LEVEL_E (1<<16) /* flag "q" */n#define ADMIN_LEVEL_F (1<<17) /* flag "r" */n#define ADMIN_LEVEL_G (1<<18) /* flag "s" */n#define ADMIN_LEVEL_H (1<<19) /* flag "t" */n#define ADMIN_MENU (1<<20) /* flag "u" */n#define ADMIN_ADMIN (1<<24) /* flag "y" */n#define ADMIN_USER (1<<25) /* flag "z" */
=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
04-24-2007, 10:39 PM #16

ADMIN_CHAT is generally the clan-wide access flag that all "admins" have on a server... ADMIN_KICK is probably the next best choice...

J jondoe
posted here
Posts: 129
Threads: 6
Joined: Aug 2005
04-25-2007, 08:05 PM #17

Thank you all, all three posts helped me out.

H Hood [10th MD]
posted here
Posts: 84
Threads: 7
Joined: Nov 2006
08-30-2007, 09:22 PM #18

More thoughts on PTeam?

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
08-31-2007, 10:23 AM #19

I have almost finished making practicaly the same plugin witch does keep you on your team even tho you are in spec the only thing i have left to fix is when you want to go back to your game it says player joined axis/allies once ive fixed that its ready to go if any one is intrested let me know nnRegardsnnBlobby

H Hood [10th MD]
posted here
Posts: 84
Threads: 7
Joined: Nov 2006
09-01-2007, 11:12 AM #20

Yeah, please post it when you're done, I'd like to check it out.

FeuerSturm
posted here
Posts: 166
Threads: 15
Joined: Jun 2007
09-01-2007, 11:24 AM #21
I have almost finished making practicaly the same plugin witch does keep you on your team even tho you are in spec the only thing i have left to fix is when you want to go back to your game it says player joined axis/allies once ive fixed that its ready to go if any one is intrested let me know rnrnRegardsrnrnBlobby
rnrnthe message can be blocked easiely, let me know if you need to be pointed to the right direction

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
09-01-2007, 12:33 PM #22

If you would point me there that would be great stuff then i can give the plugin to all of these peoplennRegardsnnBlobby

FeuerSturm
posted here
Posts: 166
Threads: 15
Joined: Jun 2007
09-01-2007, 05:43 PM #23
If you would point me there that would be great stuff then i can give the plugin to all of these peoplernrnRegardsrnrnBlobby
rnrnhere's what you will need:rnrn
new gmsgTextrnnew inSecretSpec[33]rnrnpublic plugin_init()rn{rn	//blah blah blah, the rest of your stuff herern	gmsgText = get_user_msgid("TextMsg")rn	register_message(gmsgText,"block_message")rn}rnrnpublic client_authorized(id)rn{rn	inSecretSpec[id] = 0rn}rnrnpublic block_message(msg_id, msg_Dest, msg_Ent)rn{rn		new game_msg[64]rn		get_msg_arg_string(2, game_msg, 63)rn		if(equal(game_msg, "#game_joined_team") == 1)rn		{rn			new playername[32]rn			get_msg_arg_string(3, playername, 31)rn			new id = get_user_index(playername)rn			if(inSecretSpec[id] == 1 && get_user_flags(id)&INVISIBILE_ADMIN)rn			{rn				inSecretSpec[id] = 0rn				client_print(id,print_chat,"[DoD SECRET SPEC] You are really on a team now!")rn				return PLUGIN_HANDLEDrn			}rn			return PLUGIN_CONTINUErn		}rn		return PLUGIN_CONTINUErn}
rnrnyou will need to add
inSecretSpec[id] = 1
to the function that sends the admin to spectators silently, so the plugin knows to block the message once the admin switches back to a team.rnrnThat code snippet doesn't care what team the admin choses, the message isrnalways blocked, no matter if axis, allies, spectators.rnrngive it a try and let me know if you need more help.

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
09-05-2007, 09:36 AM #24

Ok ive been working alot just recently but i will get this finnished asap and also if someone could give me back my right to post attachements so i can post it up when im done nnregardsnnBlobby

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
09-05-2007, 06:27 PM #25

pretty sure you should be able to post attachments in the 'non-developer plugins' forum.. but if not let me know and ill look into it

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
09-08-2007, 03:04 PM #26

Ok this did work and compile untill i tried to add a cvar here is the code if any one can fix this ill add your name to the plugin along side of feuersturm here is the code...nn/////////////////////////////////////////////////////////////////////////////////////////////n//* Plugin generated by AMXX-Studio *///////////////////////////////////////////////////////n//*Edit changed console command to client command*/////////////////////////////////////////n//////////////////////////////////////////////////////////////////////////////////////////n//*commands are (console = mespec) (chat = /mespec)*/////////////////////////////////////n////////////////////////////////////////////////////////////////////////////////////////n//*22/08/07 Added Cvar quickspec 1/0 (1 = on) (0 = off)*///////////////////////////////n//////////////////////////////////////////////////////////////////////////////////////n//*make sure you difine your admin level where ADMIN_LEVEL_H is to your settings/////n////////////////////////////////////////////////////////////////////////////////////n#include <amxmodx>n#include <amxmisc>n#include <dodfun>nn#define PLUGIN "Shadow Panthers Secret Spectate"n#define VERSION "3.0"n#define AUTHOR "blobby,Feuersturm"nn// Define your admin level it is required below ADMIN_LEVEL_H is a custom level//n#define INVISIBILE_ADMIN ADMIN_LEVEL_Hnnnew p_me_specnnew p_me_spec = get_pcvar_num(p_me_spec)nnnpublic plugin_init()n{n p_me_spec = register_cvar("dod_quickspec","1")n n register_plugin(PLUGIN, VERSION, AUTHOR);n register_clcmd("mespec", "me_spec", INVISIBILE_ADMIN);n register_clcmd("say /mespec","me_spec", INVISIBILE_ADMIN)n register_clcmd("say_team /mespec" , "me_spec", INVISIBILE_ADMIN)n}nnpublic me_spec(id,level,cid);n{n if(!cmd_access(id,level,cid,1);n {n return PLUGIN_HANDLED;n }n dod_set_user_team(id, 3, 0)n client_print(id, print_chat, "[DOD SECRET SPEC] you are now in spectator mode no one knows you are there :p");n return PLUGIN_HANDLED;

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
09-08-2007, 05:56 PM #27

well for one.. this isnt right:n

new p_me_spec = get_pcvar_num(p_me_spec)
you can just remove that, you only need to declare "new p_me_spec" for the pointer..nnyou also dont use the value of that cvar anywhere that i see..nnwhen you goto use it in a function, youd use something more like these right in the function itself:n
new cvarValue = get_pcvar_num(p_me_spec)
or for an if statement:n
if(get_pcvar_num(p_me_spec) == 1)n     {n      .......n
hope that helps a little

FeuerSturm
posted here
Posts: 166
Threads: 15
Joined: Jun 2007
09-09-2007, 07:14 AM #28

@blobbyrnrni quickly made a "prototype" of the plugin for you that includesrnblocking of the text message when admins rejoin a team.rnrnit also includes a check for your new cvar as i assumed that it shouldrnturn on/off the plugin.rnrnjust take a look at it.

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
09-09-2007, 08:03 AM #29

Wow nice one feuersturm m8 im getting better at this plugin writing slowly but surely i will release this one as it stands now for those who want it and i will also add you name to the copyright code as you have helped me from day 1 with thisnnThanks and regardsnnBlobby

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
09-09-2007, 08:16 AM #30

Ok i have relesed this in non developers plugins feed back would be greatrnrnRegardsrnrnBlobby

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC