[LOTF RELEASE] Ip Ban!!

05/18/2009 20:51 AndreaCo#16
alright il make it...
05/18/2009 21:04 Vortex.#17
Code:
if (Splitter[0] == "/ipban")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;

                                                    if (Char.Name == Splitter[1])
                                                    {
                                                        DataBase.Ban(Char.MyClient.Account);
                                                        DataBase.BanIP(Char.MyClient.IPE.Address.ToString());
                                                        Char.MyClient.Drop();
                                                    }
                                                }
                                            } if (Splitter[0] == "/unbanip")
                                            {
                                                try
                                                {
                                                    DataBase.UnBanIP(Splitter[1]);
                                                }
                                                catch { }
                                            }
05/18/2009 21:21 PeTe Ninja#18
Quote:
Originally Posted by Vortex. View Post
Code:
if (Splitter[0] == "/ipban")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;

                                                    if (Char.Name == Splitter[1])
                                                    {
                                                        DataBase.Ban(Char.MyClient.Account);
                                                        DataBase.BanIP(Char.MyClient.IPE.Address.ToString());
                                                        Char.MyClient.Drop();
                                                    }
                                                }
                                            } if (Splitter[0] == "/unbanip")
                                            {
                                                try
                                                {
                                                    DataBase.UnBanIP(Splitter[1]);
                                                }
                                                catch { }
                                            }
vortex where is DataBase.BanIP and DataBase.UnBanIP...you cant send them to voids without having them lol :D , nice try though..could work if you fixed a bit
05/18/2009 21:43 AndreaCo#19
thanks vortex you did all the easy stuff lol XD
05/18/2009 22:12 Vortex.#20
LOL PeTe.. My ban system is in my Database.. Cause I got pro ban system...
Also just edit a few things.. And BAM.. You got your command..
@AndreaCO NP ;)
05/18/2009 22:17 PeTe Ninja#21
its ipban not just regular ban :D, ip ban you have to add it in the ini file...i have ban also not that hard to set it to status 3 :D
05/18/2009 22:25 Vortex.#22
LOL, trust me PeTe I know what I'm saying, also... Mine is IPBan... I just do stuff different ways..
05/18/2009 22:45 PeTe Ninja#23
Quote:
Originally Posted by Vortex. View Post
LOL, trust me PeTe I know what I'm saying, also... Mine is IPBan... I just do stuff different ways..
then post it here ><