it should be look like this:
- Code: Select all
if Commanduse = true{
Player.SendlMessage("%4herobrine is already in this level!");
}
else { command continues}
i am really a begginner, in coding, (i am 13!) so thanks for the help.
current command:
- Code: Select all
// Made by: joppiesaus!
using System;
using System.Threading;
using System.IO;
namespace MCDzienny
{
public class CmdHerobrine : Command
{
public override string name { get { return "herobrine"; } }
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.Banned; } }
public override void Use(Player p, string message)
{
Player.GlobalMessage("%4 m i´ omngic rfo oyu ");
Thread.Sleep(1000);
Player.GlobalMessage("%4oyu illw eb deda");
Thread.Sleep(1000);
Player.GlobalMessage("%4oyu illw verne tge em!");
Command.all.Find("invincible").Use(p, "");
Thread.Sleep(2000);
Command.all.Find("botadd").Use(p, "Herobrine");
Thread.Sleep(50);
Command.all.Find("botset").Use(p, "Herobrine hunt");
Command.all.Find("botset").Use(p, "Herobrine kill");
Thread.Sleep(7900);
Command.all.Find("invincible").Use(p, "");
Thread.Sleep(120000);
Command.all.Find("botremove").Use(p, "all");
// Botremove all because if more people do this command, or the lava level changes, Herobrine will despawn.
}
public override void Help(Player p)
{
Player.SendMessage(p, "/herobrine oyu iwll eb deda!");
}
}
}
Thank You