| CODE |
// Created by Morgoth // Created on 02/13/2003 @ 12:03AM EST // Help by Phantom using System; using System.Text; using System.Reflection; using System.Collections; using Server; using Server.Network; using Server.Targeting; namespace Server.Scripts.Commands { public class Stats { public static void Initialize() { Server.Commands.Register( "Stats", AccessLevel.Player, new CommandEventHandler( Stats_OnCommand ) ); } public static void Stats_OnCommand( CommandEventArgs e ) { e.Mobile.SendMessage("Joueurs: {0} - Personnages non joueur: {1} - Objets: {2}", NetState.Instances.Count, World.Mobiles.Count, World.Items.Count); } } } |