by Leeizazombie » 22 Feb 2014, 14:12
Hey guys, just another Zombie Survival command, you can give players experience just like the title says.
- Code: Select all
using System;
namespace MCDzienny
{
public class CmdZEXP : Command
{
public override string name { get { return "zexp"; } }
public override string shortcut { get { return ""; } }
public override string type { get { return "mod"; } }
public override bool museumUsable { get { return false; } }
public override LevelPermission defaultRank { get { return LevelPermission.Operator; } }
public override void Use(Player p, string message)
{
if (message == "") { Help(p); return; }
int three = Convert.ToInt32(message.Split(' ')[1]);
string two = message.Split(' ')[0];
Player who = Player.Find(two);
if (who == null)
{
Player.SendMessage(p, "Player is not online.");
return;
}
who.PlayerExperienceOnZombie = (who.PlayerExperienceOnZombie + three);
Player.SendMessage(p, Server.DefaultColor + "%7You gave %a" + three + " %7Experience to " + who.color + who.PublicName);
}
public override void Help(Player p)
{
Player.SendMessage(p, "/zexp [player] [value] - Gives experience to [player]");
}
}
}
Owner of:
LeeIzaZombie Freebuild and Lava Survival V2 (Shut Down and updated)
LeeIzaZombie Survival (Comming back soon)
Contact:
Skype: leeizazombie
IRC: irc.geekshed.net, #leeizazombie, #mcclassichosting