Well,Ima code and release a ban system, which is NOT FOR LOTF, so you actually need to rewrite this ( this might be a good system to get leachers to learn *hopes* ) .
Well,lets start?
First,we add a HashTable, in lotf, add it under AllChars hashtable ( i think, not having a lotf source opened ) .
Code:
public static Hashtable BannedUsers = new Hashtable();
Good,learn how to finally copy paste eh'.
Well,lets move on.
Do a void ( guess where? -.- ) , should look SOMETHING like this but you have to rewrite it, dont think its written in lotf source.
Code:
public void CheckIfBan(GameClient Client)
{
if (Everything.BannedUsers.Contains(Client.Username))
{
MessageInfo Msg = new MessageInfo("", "ALLUSERS", Color.White, ChatType.Dialog);
Msg.dwParam = Client.Entity.UID;
Msg.Message = "Your account : " + Client.Username + " is banned. Please speak to the server admin";
Client.Send(PacketBuilder.Message(Msg));
}
}
Good!
Now, add a command to ban players. Also,this is nothing like LOTF,and this command isnt even done since im written it directly at e*pvp . This is just an example:
Code:
case "/banuser":
Everything.BannedUsers.Add(Client.Username, Client);
break;
It SHOULD work, not really sure since I tested it once then rewrote it a bit. Anyways this should get some people to learn since this isnt nooby style,lawl,even tho this isnt the best way.
Emme






