Author Topic: Toggle Admin-Leave-Minigame Rights  (Read 987 times)

I'm tired of my lazy fat admins leaving the minigame to build crap that I dont want on my server.
I'm asking for someone willing enough to make an add-on that makes admins NOT leave a dedicated minigame.
So theres no cheap crap, or spam, or admins out of minigame jetting over the battle field watching, and getting in the way.
I dont want to De-admin them while in a minigame, so someone needs to made this add-on.
Please.

I dont want to De-admin them while in a minigame, so someone needs to made this add-on.
That is the most valid reason to make an add-on I've ever seen.

Wait, can't you use the default mini-game or something? Or would that not work?

Wait, can't you use the default mini-game or something? Or would that not work?
They can still leave it.

Code: [Select]
package MinigameAO
{
function serverCmdCreateMinigame(%client,%a,%b,%c,%d,%e,%f,%g)
{
if(%client.isAdmin)
{
Parent::serverCmdCreateMinigame(%client,%a,%b,%c,%d,%e,%f,%g);
}
else
{
messageclient(%client,"","Sorry, you are not an admin.");
}
}
};
activatePackage(MinigameAO);

package SetMini
{
function GameConnection::onClientEnterGame(%this)
{
%client = %this;
schedule(100,0,"SetMinigame",%client);
parent::onClientEnterGame(%this);
}
};
activatepackage(SetMini);

function SetMinigame(%client){
if(isObject($RPGMini)){
$RPGMini.addmember(%client);
}
}

package NoLeavingMini
{
function ServerCmdLeaveMinigame(%client)
{
if(%client.minigame == $RPGMini && !%client.isHost)
{
messageclient(%client,"","Only the host may leave the default minigame.");
}
else
{
parent::ServerCmdLeaveMinigame(%client);
}
}
};
activatepackage(NoLeavingMini);

function ServerCmdSetDefaultMinigame(%client)
{
if(isObject(%client.minigame))
{
if(%client.isadmin)
{
$RPGMini = %client.minigame;
for(%i = 0; %i < ClientGroup.getcount();%i++)
{
%test = ClientGroup.getobject(%i);
if(%test.minigame != $RPGMini)
{
if(isObject(%test.minigame))
{
%test.minigame.removemember(%test);
}
$RPGmini.addmember(%test);
}
}
messageall("","A default minigame has been set!");
}
else
{
messageclient(%client,"","You are not an admin!");
}
}else{
messageclient(%client,"","You are not in a minigame!");
}
}

I'm tired of my lazy fat admins leaving the minigame to build crap that I dont want on my server.
I'm asking for someone willing enough to make an add-on that makes admins NOT leave a dedicated minigame.
So theres no cheap crap, or spam, or admins out of minigame jetting over the battle field watching, and getting in the way.
I dont want to De-admin them while in a minigame, so someone needs to made this add-on.
Please.
Just have good admins that do what you tell them.


Yeah, I hate it when admins do this and go be fatys :c

Generally I would consider them a bad admin and actually perminently remove admin from them, and use /setdefaultminigame again so they get forced into it.

Generally I would consider them a bad admin and actually perminently remove admin from them, and use /setdefaultminigame again so they get forced into it.
Exactly. @OP Just be sure they know it was wrong to leave the mini. They may have no idea that they're not supposed to leave, and would be confused if you just deadmined them. Ask them to stay in the minigame, and if they are not listening, then they aren't admin worthy.

Thanks, but If you have, say a best friend as admin, and you dont want to de-admin them, or they will get mad. Or if your admin is someone like lalam24 who would make a drama topic about you de-admining him.
No offence to you Lalam24 =P

I like my admins they listen to me :3


get better admins.
You probably dont have any friends... You can just, Get new friends..

You probably dont have any friends... You can just, Get new friends..
You're stupid too.