Hide admins spec
by npk06 · 2006-12-02 · 29 replies · 10079 views · 31 downloads
From the first post
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.
Threads: 2
Joined: Dec 2006
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:
Threads: 103
Joined: May 2005
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
Threads: 57
Joined: Oct 2005
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.
Threads: 2
Joined: Apr 2006
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?
Threads: 103
Joined: May 2005
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"
Threads: 11
Joined: Aug 2006
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.
Threads: 2
Joined: Dec 2006
Hi,rnrnthank you guys for your answers. I'm gonna check your plugin Wilson ;) rnrnThanks a lot
Threads: 7
Joined: Jun 2006
I tried this plugin and works great.
Threads: 7
Joined: Nov 2006
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.
Threads: 103
Joined: May 2005
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?
Threads: 57
Joined: Oct 2005
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.
Threads: 7
Joined: Nov 2006
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?
Threads: 6
Joined: Aug 2005
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
Threads: 7
Joined: Nov 2006
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.
Threads: 103
Joined: May 2005
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" */
Threads: 54
Joined: May 2005
ADMIN_CHAT is generally the clan-wide access flag that all "admins" have on a server... ADMIN_KICK is probably the next best choice...
Threads: 6
Joined: Aug 2005
Thank you all, all three posts helped me out.
Threads: 7
Joined: Nov 2006
More thoughts on PTeam?
Threads: 47
Joined: Apr 2007
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
Threads: 7
Joined: Nov 2006
Yeah, please post it when you're done, I'd like to check it out.
Threads: 15
Joined: Jun 2007
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 rnrnRegardsrnrnBlobbyrnrnthe message can be blocked easiely, let me know if you need to be pointed to the right direction
Threads: 47
Joined: Apr 2007
If you would point me there that would be great stuff then i can give the plugin to all of these peoplennRegardsnnBlobby
Threads: 15
Joined: Jun 2007
If you would point me there that would be great stuff then i can give the plugin to all of these peoplernrnRegardsrnrnBlobbyrnrnhere'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.Threads: 47
Joined: Apr 2007
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
Threads: 103
Joined: May 2005
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
Threads: 47
Joined: Apr 2007
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;
Threads: 103
Joined: May 2005
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:nnew cvarValue = get_pcvar_num(p_me_spec)or for an if statement:nif(get_pcvar_num(p_me_spec) == 1)n {n .......nhope that helps a littleThreads: 15
Joined: Jun 2007
@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.
Threads: 47
Joined: Apr 2007
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
Threads: 47
Joined: Apr 2007
Ok i have relesed this in non developers plugins feed back would be greatrnrnRegardsrnrnBlobby

