![Bardzo szczęśliwy :D](./images/smilies/icon_e_biggrin.gif)
using System;
namespace MCDzienny
{
public class Cmdtitleme : Command
{
public override string name { get { return "titleme"; } }
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.Guest; } }
public override void Use(Player p, string message)
{
if (message == "")
{
Help(p);
return;
}
else
{
Command.all.Find("settitle").Use(p, p.name + " " + message);
}
}
public override void Help(Player p)
{
Player.SendMessage(p, "/titleme [title] -- Gives you a title.");
}
}
}
using System;
using System.IO;
namespace MCDzienny
{
public class Cmdgiveme : Command
{
public override string name { get { return "giveme"; } }
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;
}
else
{
int giveme = Convert.ToInt32(message);
p.money = p.money + giveme;
Player.SendMessage(p, "You got " + giveme + Server.moneys);
Player.SendMessage(p, "You now have $money " + Server.moneys);
}
}
public override void Help(Player p)
{
Player.SendMessage(p, "/giveme [value] - Gives you money.");
}
}
}
Users browsing this forum: No registered users and 7 guests