Yeah whatever.. Just incase you wanted it.. I take no credit other than posting it..
Or if you want a foreach statment
So when you type /congradulate Randomperson
[Only registered and activated users can see links. Click Here To Register...]
Then you get this
[Only registered and activated users can see links. Click Here To Register...]
This code was used by me as an event code..
Have fun
60% Of the credits go to BasicCoder
40% Go to me cause I posted half the code, then he edited it :D
Code:
if (Splitter[0] == "/congratulate")
{
World.SendMsgToAll("Congratulations to"+ Splitter[1]+" for winning the event" , "[SYSTEM]", 2011);
}
Code:
if (Splitter[0] == "/congratulate")
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
if (Splitter[1] == Char.Name)
{
World.SendMsg("Congratulations to "+ Splitter[1]+" for winning the event" , "[SYSTEM]", 2011);
}
}
}
[Only registered and activated users can see links. Click Here To Register...]
Then you get this
[Only registered and activated users can see links. Click Here To Register...]
This code was used by me as an event code..
Have fun
60% Of the credits go to BasicCoder
40% Go to me cause I posted half the code, then he edited it :D