the-punisher
Wanderer
Secure System (Safe Shard)
I would like to do a system that i can guarantee that my sever will never be stoled... so ill tryed to modify the core to create a COMMAND INSINDE the core that ill type that command and a password so my server automaticly shuts down and only I can open he again...
ill tryed to make a command and compile with the core but didnt work:
And there is a way to trow all the scripts INSIDE the core?
I would like to do a system that i can guarantee that my sever will never be stoled... so ill tryed to modify the core to create a COMMAND INSINDE the core that ill type that command and a password so my server automaticly shuts down and only I can open he again...
ill tryed to make a command and compile with the core but didnt work:
Code:
namespace Server.Scripts.Commands
{
public class CommandHandlers
{
public static void Initialize()
{
Register( "Securesystem", AccessLevel.Player, new CommandEventHandler( Securesystem_OnCommand ) );
}
public static void Register( string command, AccessLevel access, CommandEventHandler handler )
{
Server.Commands.Register( command, access, handler );
}
//[Usage( "Securesystem <password>" )]
//[Description( "Secure Systems" )]
public static void Securesystem_OnCommand( CommandEventArgs e )
{
if ( e.Length == 1 )
{
if ( e.GetString( 0 ) == "696969" )
e.Mobile.SendMessage( "Secure System Load and Ready." );// and do something.
else
e.Mobile.SendMessage( "Wrong command." );
}
else
{
e.Mobile.SendMessage( "Wrong command." );
}
}
}
}
And there is a way to trow all the scripts INSIDE the core?