alright il make it...
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 bitQuote:
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 { } }