Will this work?

02/01/2010 04:28 WHITELIONX#1
Code:
public static void SaveBan(Character Value, Main.GameClient GC)
        {
            if (File.Exists(@"C:\OldCODB\Ban\Ban.txt"))
            {
                string[] AllLines = System.IO.File.ReadAllLines(@"C:\OldCODB\Ban\Ban.txt");
                int Ban = AllLines.Length;
                for (int x = 0; x < Ban; x++)
                {
                    string[] BanAccount = AllLines[x].Split('#');
                    string CharID = BanAccount[0];
                    string Name = BanAccount[1];
                    if (BanAccount.Contains(GC.MyChar.EntityID.ToString()) && CharID.Contains(GC.MyChar.EntityID.ToString()))
                    {

                    }
                }
            }
        }
My question is this, I have added this to database.cs and a few other things to the source I am now able to delete chars and accounts from a command ingame and I am wondering will this work?

I am also attempting to work on an unban system from command also, might be easy work for a lot of you guys on here but I am just looking through the source and trial and erroring lol
02/01/2010 20:43 ImmuneOne#2
Why don't you just add in at the account file (NOT CHARACTER) a new value for the authType for ex.

Banned = 1, WrongInfo = 2, AllFine = 3

if (AuthType == 1)
// Banned
02/01/2010 20:58 Viscount S#3
I don't know. Have you tried it?
02/01/2010 21:48 WHITELIONX#4
I would do that ImmuneOne but I have no idea how to lmao, I just based this idea from a deleteaccount post. I am not sure where you mean when you say account file? I am messing in database.cs but remembering what I mess with so if I get an error I can rectify it :D