Author Topic: Un-Banning.  (Read 1052 times)

Somtimes, when I am on a server, some idiot keeps saying, CAN I BE ADMIN? CAN I BE ADMIN? CAN I BE ADMIN?
So I ban them. But there is always a traitor who un-bans.
I need to know who betrays!
Please make it say who unbans who. e.g:    Furdle Un-banned Badspot(ID-0)
Lol, sorry for using Badspot.

 :cookieMonster:


Kick the people!!!
« Last Edit: February 10, 2008, 05:55:22 AM by mike1337 »

This is easily possible, I just need to find out what function to package...

Good idea, I think it should be included with the game (and it would be easy for BadSpot, I expect, because you'd only need to change like 1-2 lines of code).

I already did this for the MotE server:
Code: [Select]
package unBan{
function serverCmdUnBan(%client, %banID){
%victimName = $BanManagerSO.victimName[%banID];
%victimID = $BanManagerSO.victimBL_ID[%banID];
%reason = $BanManagerSO.reason[%banID];
%numBans = $BanManagerSO.numBans;
Parent::serverCmdUnBan(%client, %banID);
if(%numBans > $BanManagerSO.numBans){
%string = getDateTime() @ " - " @ %client.name @ " (ID: " @ %client.bl_id @ ") has unbanned " @ %victimName @ " (ID: " @ %victimID @ "). " @ %victimName @ " was banned for: " @ %reason;
echo(%string);
%file = new FileObject();
%file.openForAppend("Add-Ons/UnBanLog.txt");
%file.writeLine(%string);
%file.close();
%file.delete();
}
}
};
activatePackage(unBan);

Furdle, I congratulate you for not making another crap idea.

lol that MotE makes a special code to see unbanners...