This is what it does:
If an player types /admin, it will list up all admins that are online , if there isnt any admin online, it says that.
Search for /save or something like that where the playercommands are, and add this somewhere.
Code:
if (Message == "/admin")
{
string BackMsg = "";
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
if (Char.MyClient.Status == 8 || Char.MyClient.Status == 7)
{
BackMsg += Char.Name + ", ";
}
else
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "There are no admin's online.", 2000));
}
if (BackMsg.Length > 1)
{
BackMsg = BackMsg.Remove(BackMsg.Length - 2, 2);
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Admin(s) Online : " + BackMsg, 2000));
}
}
}
Emme






