| Blockland Forums > Suggestions & Requests |
| Toggle Admin-Leave-Minigame Rights |
| (1/3) > >> |
| Dillpickle:
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. |
| lilboarder32:
--- Quote from: Dillpickle on February 25, 2010, 10:51:17 PM ---I dont want to De-admin them while in a minigame, so someone needs to made this add-on. --- End quote --- That is the most valid reason to make an add-on I've ever seen. |
| shortazn97:
Wait, can't you use the default mini-game or something? Or would that not work? |
| Chrono:
--- Quote from: shortazn97 on February 26, 2010, 01:10:51 AM ---Wait, can't you use the default mini-game or something? Or would that not work? --- End quote --- They can still leave it. |
| Tezuni:
--- Code: ---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!"); } } --- End code --- |
| Navigation |
| Message Index |
| Next page |