- Code: Select all
using System.Threading;
using System.IO;
namespace MCDzienny
{
public class CmdEMP : Command
{
public override string name { get { return "EMP"; } }
public override string shortcut { get { return ""; } }
public override string type { get { return "other"; } }
public override bool museumUsable { get { return false; } }
public override LevelPermission defaultRank { get { return LevelPermission.Admin; } }
public override void Use(Player p, string message)
{
Command.all.Find("cmdset").Use(p, "physics nobody");
Command.all.Find("physics").Use(p, "3");
Command.all.Find("place").Use(p, "tnt " + 33 + " " + 54 + " " + 29);
Command.all.Find("place").Use(p, "tnt " + 32 + " " + 54 + " " + 29);
Command.all.Find("place").Use(p, "tnt " + 31 + " " + 54 + " " + 29);
Command.all.Find("place").Use(p, "tnt " + 33 + " " + 54 + " " + 30);
Command.all.Find("place").Use(p, "tnt " + 32 + " " + 54 + " " + 30);
Command.all.Find("place").Use(p, "tnt " + 31 + " " + 54 + " " + 30);
Command.all.Find("place").Use(p, "tnt " + 33 + " " + 54 + " " + 31);
Command.all.Find("place").Use(p, "tnt " + 32 + " " + 54 + " " + 31);
Command.all.Find("place").Use(p, "tnt " + 31 + " " + 54 + " " + 31);
Command.all.Find("place").Use(p, "fire " + 33 + " " + 55 + " " + 29);
Command.all.Find("place").Use(p, "fire " + 32 + " " + 55 + " " + 29);
Command.all.Find("place").Use(p, "fire " + 31 + " " + 55 + " " + 29);
Command.all.Find("place").Use(p, "fire " + 33 + " " + 55 + " " + 30);
Command.all.Find("place").Use(p, "fire " + 32 + " " + 55 + " " + 30);
Command.all.Find("place").Use(p, "fire " + 31 + " " + 55 + " " + 30);
Command.all.Find("place").Use(p, "fire " + 33 + " " + 55 + " " + 31);
Command.all.Find("place").Use(p, "fire " + 32 + " " + 55 + " " + 31);
Command.all.Find("place").Use(p, "fire " + 31 + " " + 55 + " " + 31);
Command.all.Find("physics").Use(p, "0"):
Player.GlobalMessage("%4The server has just been EMPED!");
Thread.Sleep(2000)
Player.GlobalMessage("%4The effects of the EMP will last for 3 minutes");
Thread.Sleep(300000)
Player.GlobalMessage("%4fPhysics are now available");
Command.all.Find("physics").Use(p, "3");
Command.all.Find("cmdset").Use(p, "physics Admin");
}
public override void Help(Player p)
{
Player.SendMessage(p, "%4/EMP: takes out the physics for 3 minutes.");
Player.SendMessage(p, "%4If in a lava round the timer willl keep going.");
Player.SendMessage(p, "%4 Command created by Apocalypse_Demon.");
}
}
}
What is wrong with this code? I keep getting errors when i try to compile it, I don't know what i'm doing wrong because i have made commands like this before and they work perfectly fine. If this command is to messed up then I will just remove it from the custom command pack that I will be releasing soon.