that's so fucked up , umm well here
at Client.RemoveSpell(new Spell(true)(Data[3]) });
the "Client" is the client that sends this command not the player client
so to get to the player client you need to do something like this
Code:
foreach (var pClient in ServerBase.Kernel.GamePool.Values)
{
if (pClient.Entity.Name.ToLower().Contains(Data[1]))
{
/* you need here to remove it from that pclient you mentioned his name at the command but you first should check if he got the spell or not before removing it , else enjoy a cute error on console */
}
}
and just before you ask , to use this you should add his name at the second word in the command , ex: @RemoveSpell Playername SpellID
and at the ann
im speechless , you need to study c# before you even work on a source but ill still help you anyway
for example at
ServerBase.Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Message : " + Mess.Remove(0, 3), System.Drawing.Color.Green, Network.GamePackets.Message.Center), ServerBase.Kernel.GamePool.Values);
that
"" + client.Entity.Name + " Message : "
is a string
and basically a string is an array of characters or in easy words it's a sentence
that + sign add more words to that string
that "" is empty string which is useless and could be removed
this client.Entity.Name is your client entity name o-0 lol
and this " Message : " is another string
it add all of them to be "Yourname Message : "
you can simply edit that to whatever you want
forexample
if you want it to display "yosif[gm] Message : "
you should do this
Code:
case "ann":
{
ServerBase.Kernel.SendWorldMessage(new Message("yosif[gm] Message : " + Mess.Remove(0, 3), System.Drawing.Color.Green, Network.GamePackets.Message.Center), ServerBase.Kernel.GamePool.Values);
ServerBase.Kernel.SendWorldMessage(new Message("yosif[gm] Message : " + Mess.Remove(0, 3), System.Drawing.Color.Green, Network.GamePackets.Message.World), ServerBase.Kernel.GamePool.Values);
break;
my advice to you is here