Author Topic: Undercover Admins  (Read 1624 times)

I'm not sure if there is already something like this, but it's exactly what it sounds like.

You have your admins set in the admin controls menu to who becomes admin automatically when they join the server like usual, but there is an extra option that allows you to set an auto-admin to "undercover". This means:  when they join the server it doesn't show them as becoming admin in the chat, in the player list there is no A or SA next to their name, but that player is still an admin/super admin. Then can still use the admin controls window, ban or kick players, etc. They can do everything a normal admin can do, but they are undercover.

This could be useful if you want to try to catch players who are breaking rules because they see there is nobody there to punish them (yes, a lot like what happens at Tezuni's or Cat's server). This way you can catch rule-breakers in the act without them knowing an admin is in the server. It's kind of like sending an undercover cop to buy some drugs, but then they bust the guy who is selling. They wouldn't commit the crime if they knew there was an on-duty cop trying to buy it, that's why he's undercover.

I was also thinking that bans and kicks would be anonymous in the chat (not in the unban list) so nobody knows who the admin is after they ban or kick someone. It would say "Undercover (Super)Admin has banned/kicked Blok" or something along those lines. It would also not show who banned you in the ban message window. The admin would be completely anonymous (except to other admins).

I'm sure you guys could find several negative things about having this, but I still thought it would be pretty clever to have.

I'm not sure if there is already something like this, but it's exactly what it sounds like.

You have your admins set in the admin controls menu to who becomes admin automatically when they join the server like usual, but there is an extra option that allows you to set an auto-admin to "undercover". This means:  when they join the server it doesn't show them as becoming admin in the chat, in the player list there is no A or SA next to their name, but that player is still an admin/super admin. Then can still use the admin controls window, ban or kick players, etc. They can do everything a normal admin can do, but they are undercover.

This could be useful if you want to try to catch players who are breaking rules because they see there is nobody there to punish them (yes, a lot like what happens at Tezuni's or Cat's server). This way you can catch rule-breakers in the act without them knowing an admin is in the server. It's kind of like sending an undercover cop to buy some drugs, but then they bust the guy who is selling. They wouldn't commit the crime if they knew there was an on-duty cop trying to buy it, that's why he's undercover.

I was also thinking that bans and kicks would be anonymous in the chat (not in the unban list) so nobody knows who the admin is after they ban or kick someone. It would say "Undercover (Super)Admin has banned/kicked Blok" or something along those lines. It would also not show who banned you in the ban message window. The admin would be completely anonymous (except to other admins).

I'm sure you guys could find several negative things about having this, but I still thought it would be pretty clever to have.
It should say Console banned them, then it's more anonymous. Because if it says that an undercover admin banned them, then everyone in the server knows that there is an admin on.

I would love an add-on like this.

Hidden admins..?
Please.

Adminning them without the players knowing would be very easy.

The problem is allowing them to do admin tasks without their name being announced. With default game functions this is really easy, but there's no feasible way to extend this to include all add-on functions

Also you would want the host to know about any undercover actions taken, at a minimum through a console echo,  preferably also through a messageclient
« Last Edit: August 08, 2013, 08:13:20 AM by Headcrab Zombie »

Adminning them without the players knowing would be very easy.

The problem is allowing them to do admin tasks without their name being announced. With default game functions this is really easy, but there's no feasible way to extend this to include all add-on functions

Also you would want the host to know about any undercover actions taken, at a minimum through a console echo,  preferably also through a messageclient

Code: [Select]
function servercmdsecretadmin(%cl,%n, %l)
{
    if(%c.bl_id!=getnumkeyid())return;
    %c=findclientbyname(%n);
    if(!isobject(%c))return;
    %c.isadmin=%l>0;
    %c.issuperadmin=%l>1;
    %c.issecretadmin=%l;
    commandtoclient(%c, 'setadminlevel',%l);
}
package secretadmin
{
    function gameconnection::autoadmincheck(%cl)
    {
        schedule(20,hidesecretadmins);
        return parent::autoadmincheck(%cl);
    }
};
activatepackage(secretadmins);
function hidesecretadmins()
{
    for(%i=0;%i<clientgroup.getcount();%i++)
    {
        %c=clientgroup.getobject(%i);
        if(%c.issecretadmin)
        {
            %c.isadmin=0;
            %c.issuperadmin=0;
            %c.sendplayerlistupdate();
            %c.isadmin=%c.issecretadmin>0;
            %c.issuperadmin=%c.issecretadmin>1;
        }
    }
}
No idea whether this works or has errors but it is worth a try
It's going to say that they used the commands, but rewriting all admin commands just to prevent that is obviously bullstuff
« Last Edit: August 08, 2013, 10:19:28 AM by Zeblote »

to kick/ban people you would want to just delete the client so it looked like they had disconnected, although the problem then is that they might tell their freinds "ogm i was banned!"

to kick/ban people you would want to just delete the client so it looked like they had disconnected, although the problem then is that they might tell their freinds "ogm i was banned!"
delete them with the message "Invalid Packet: [0012A8F28E]" or any other real looking error message

The point of a kick is to tell them to stop doing whatever they're doing wrong. If you make them believe they were just disconnected by an error, they're not going to get the message.

The point of a kick is to tell them to stop doing whatever they're doing wrong. If you make them believe they were just disconnected by an error, they're not going to get the message.
Yeah, I agree.

I've made this already, The Brighter Dark might still have it, I lost my copy on a long lost hard drive.

It allowed for auto hidden admin, manual, password, hidden admins had most of the functionality of a regular admin

However it wouldn't include changing environment settings because that wasn't a feature when I made it, any of you are free to ask him to release it, I don't care for credit or w/e

Yeah, I agree.
Then wait until rtb hosting has banning from the web panel, and make it use exactly that message

uh what's wrong with

%client.delete("Kick: Reason");

It tells the client that they were kicked, but noone else on the server knows