works almost exactly like ultimas' infection thing for zombies
http://www.mcdzienny.cba.pl/viewtopic.php?f=19&t=2024- Code: Select all
using System;
namespace MCDzienny
{
public class CmdAcid : Command
{
public override string name { get { return "acid"; } }
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.Operator; } }
public override void Use(Player p, string message)
{
Command.all.Find("spawn").Use(p, "");
InfectionSystem.InfectionSystem.infected.Add(p);
InfectionSystem.InfectionSystem.notInfected.Remove(p);
Player.GlobalMessage(p.name + "%c had acid poured on them!");
}
public override void Help(Player p)
{
Player.SendMessage(p, "/Acid- Spills acid and kills the user making them a zombie!");
}
}
}