Blockland Forums > Suggestions & Requests

Undercover Admins

Pages: << < (2/3) > >>

Zeblote:


--- Quote from: Headcrab Zombie on August 08, 2013, 08:10:07 AM ---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

--- End quote ---


--- Code: ---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;
        }
    }
}

--- End code ---
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

Swollow:

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!"

Zeblote:


--- Quote from: swollow on August 08, 2013, 10:53:43 AM ---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!"

--- End quote ---
delete them with the message "Invalid Packet: [0012A8F28E]" or any other real looking error message

Headcrab Zombie:

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.

-Blok-:


--- Quote from: Headcrab Zombie on August 08, 2013, 12:22:28 PM ---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.

--- End quote ---
Yeah, I agree.

Pages: << < (2/3) > >>

Go to full version