/sayhi /insane /moreplz

/sayhi /insane /moreplz

Postby dryfly21 » 20 Apr 2012, 01:52

please dont take it and change somethings and called it yours i worked hard thanks **you do not need to put these on your servers so dont post stuff like "these look lame" or "these look great but i dont need these" your feedback would be most appreciated** thanks :D

this first one is /sayhi basically say's hi to fellow players

V2.0
Code: Select all
// Made by dryfly21 my first cmd for MCDzienny.

using System;

namespace MCDzienny
{
    public class CmdSayhi : Command
    {       
        public override string name { get { return "sayhi"; } }
        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.Banned; } }

        public override void Use(Player p, string message)
        {
            if (p == null)
            {
                Player.SendMessage(p, "%3This command can not be used from the console.");
                return;
            }

            Player.SendMessage(p, p.color + p.name + Server.DefaultColor + "> I'm saying hi to you my fellow player!");
            Player who = Player.Find(message);

            if (who == null)
            {
                Player.SendMessage(p, "%2Could not find player entered.");
                return;
            }
            if (who == p)
            {
                Player.SendMessage(p, "%4Sorry, you can't say hi to yourself.");
                return;
            }
        }

        public override void Help(Player p)
        {
            Player.SendMessage(p, "/sayhi [player] - says hi to your fellow players.");
        }
    }
}


my other one i made is called /insane this one is only for fun and for others to have fun with it. it says that you the player has gone insane then says scrambled text witch are sentences so try to figure it out :D

V1.0
Code: Select all
//this is made by dryfly21 and this is just for fun
//try to figure out what the messages say
using System;

namespace MCDzienny
{
    public class CmdInsane : Command
    {
        public override string name { get { return "insane"; } }
        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 who = Player.Find(message);
                Player.GlobalMessage(p.color + p.name + " %2has gone %4INSANE!!!!! ");
                Player.SendMessage(p, "%cHits si armdom os yrt oto ifgrue htis uot fi uyo hintk oruy mstar neuhog?");
                Player.SendMessage(p, "%aH%4E%2R%1W%6E %4S%1I %2Y%3M %4I%6K%2T%1C%4T%bE%a?!");
                Player.SendMessage(p, "%6era uoy rayde rof het imte fo uyor ifle?");
                Player.SendMessage(p, "%4I hnkti fylrdy12 si het estb erspno ni hte ordlw!");
        }
        public override void Help(Player p)
        {
            Player.SendMessage(p, "/insane - makes you say crazy stuff.");
        }
    }
}


the lastest one i made is called /moreplz[/color] (moreplz is short for moreplease) this one i worked much harder on and may contain bugs for i was unable to test it my self :/ but this is for lava survivals or regualer servers that have a money system. some might not like it but basically its a cmd that allows you to ask other players for money (or what ever server money system you have set up) it could also help people/server owners find out who the money beggers are

V1.0
Code: Select all
//made by dryfly21 this is for lava server's

using System;

namespace MCDzienny
{
    public class CmdMoreplz : Command
    {
        public override string name { get { return "moreplz"; } }
        public override string shortcut { get { return "mz"; } }
        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 (p == null)
            {
                Player.SendMessage(p, "This command can't be used in the console!");
                return;
            }

            Player.SendMessage(p, p.color + p.name +Server.DefaultColor + "> may i have some " + Server.moneys + " please?");
            Player who = Player.Find(message);

            if (who == null)
            {
                Player.SendMessage(p, "could not find the player entered!");
                return;
            }
            if (who == p)
            {
                Player.SendMessage(p, "Sorry, you cant ask for more to yourself!");
                return;
            }
                Player.SendMessage(p, "*" + p.color + p.name + Server.DefaultColor + " be carefull with this cmd it could get you banned!");
                Player.GlobalMessage(p.color + p.name + Server.DefaultColor + " asked " +who.color + who.name + Server.DefaultColor + " for " + message + Server.moneys + "!");
                Player.GlobalMessage(who.color + who.name + Server.DefaultColor + " type /pay [player] <amount> to pay the player asking for money.");
        }

        public override void Help(Player p)
        {
            Player.SendMessage(p, "/moreplz - ask's for more money.");
        }
    }
}
dryfly21
 
Posts: 135
Joined: 07 Apr 2012, 03:27

Re: 3 cmd's made by me

Postby Lapito » 20 Apr 2012, 03:05

Cool cmd's ! :D
Lapito
 
Posts: 24
Joined: 08 Feb 2011, 00:17

Re: 3 cmd's made by me

Postby dryfly21 » 20 Apr 2012, 03:10

Lol thanks if you want you use them but you don't have too :D
dryfly21
 
Posts: 135
Joined: 07 Apr 2012, 03:27

Re: 3 cmd's made by me

Postby TheOneMeg » 20 Apr 2012, 12:53

I like the last command (MorePlease), but I think that much players will spam with it. :lol:
Image
TheOneMeg
 
Posts: 28
Joined: 20 Mar 2012, 18:42

Re: 3 cmd's made by me

Postby dryfly21 » 20 Apr 2012, 14:11

TheOneMeg wrote:I like the last command (MorePlease), but I think that much players will spam with it. :lol:

:D thanks and yah that was my worry as well but feel free to try it out if you want
dryfly21
 
Posts: 135
Joined: 07 Apr 2012, 03:27

Re: 3 cmd's made by me

Postby TheOneMeg » 20 Apr 2012, 16:25

I think that there's a bug in "MorePlz".

If you write (as example):
/MorePlz TheOneMeg

Then this message appears:
BlaBla asked TheOneMeg for TheOneMegEuro!


Code: Select all
Player.GlobalMessage(p.color + p.name + Server.DefaultColor + " asked " +who.color + who.name + Server.DefaultColor + " for " + message + Server.moneys + "!");


I guess there is mistake with the "+ message +" .



EDIT:

And If you write (as example):
/MorePlz TheOneMeg <amount>

Nothing happens.
Image
TheOneMeg
 
Posts: 28
Joined: 20 Mar 2012, 18:42

Re: 3 cmd's made by me

Postby dryfly21 » 20 Apr 2012, 18:06

Ok I will get that fixed :D thanks for telling me
dryfly21
 
Posts: 135
Joined: 07 Apr 2012, 03:27

Re: 3 cmd's made by me

Postby dryfly21 » 21 Apr 2012, 02:53

here is a updated version to /moreplz

V1.5
Code: Select all
//made by dryfly21 this is for lava server's

using System;

namespace MCDzienny
{
    public class CmdMoreplz : Command
    {
        public override string name { get { return "moreplz"; } }
        public override string shortcut { get { return "mz"; } }
        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 (p == null)
            {
                Player.SendMessage(p, "This command can't be used in the console!");
                return;
            }

            Player.SendMessage(p, p.color + p.name +Server.DefaultColor + "> may i have some " + Server.moneys + " please?");
            Player who = Player.Find(message);

            if (who == null)
            {
                Player.SendMessage(p, "could not find the player entered!");
                return;
            }
            if (who == p)
            {
                Player.SendMessage(p, "Sorry, you cant ask for more to yourself!");
                return;
            }
                Player.SendMessage(p, "*" + p.color + p.name + Server.DefaultColor + " be carefull with this cmd it could get you banned!");
                Player.GlobalMessage(p.color + p.name + Server.DefaultColor + " asked " +who.color + who.name + Server.DefaultColor + " for " + p.money + Server.moneys + "!");
                Player.GlobalMessage(who.color + who.name + Server.DefaultColor + " type /pay [player] <amount> to pay the player asking for money.");
        }

        public override void Help(Player p)
        {
            Player.SendMessage(p, "/moreplz - ask's for more money.");
            Player.SendMessage(p, "Be carefull with this cmd it could get you banned!");
        }
    }
}


i have got ride of + message + and added + p.money + might be better idk if not i will get ride of it :D
dryfly21
 
Posts: 135
Joined: 07 Apr 2012, 03:27

Re: 3 cmd's made by me

Postby TheOneMeg » 21 Apr 2012, 10:18

Ok, I will test it. ;)
Image
TheOneMeg
 
Posts: 28
Joined: 20 Mar 2012, 18:42

Re: 3 cmd's made by me

Postby dryfly21 » 24 Apr 2012, 20:14

here is the cmd /moreplz updated so now it sends a message to ops when a player uses the cmd. (spam control) :D

V2.0
Code: Select all
//made by dryfly21 this is for lava server's

using System;

namespace MCDzienny
{
    public class CmdMoreplz : Command
    {
        public override string name { get { return "moreplz"; } }
        public override string shortcut { get { return "mz"; } }
        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 (p == null)
            {
                Player.SendMessage(p, "This command can't be used in the console!");
                return;
            }

            Player.SendMessage(p, p.color + p.name +Server.DefaultColor + "> may i have some " + Server.moneys + " please?");
            Player who = Player.Find(message);

            if (who == null)
            {
                Player.SendMessage(p, "could not find the player entered!");
                return;
            }
            if (who == p)
            {
                Player.SendMessage(p, "Sorry, you cant ask for more to yourself!");
                return;
            }
                Player.SendMessage(p, "*" + p.color + p.name + Server.DefaultColor + " be carefull with this cmd it could get you banned!");
                Player.GlobalMessage(p.color + p.name + Server.DefaultColor + " asked " +who.color + who.name + Server.DefaultColor + " for " + p.money + Server.moneys + "!");
                Player.GlobalMessage(who.color + who.name + Server.DefaultColor + " type /pay [player] <amount> to pay the player asking for money.");
                Player.GlobalMessageOps("&4To Ops -" + p.color + p.name + "-" + Server.DefaultColor + " asked " + who.color + who.name + Server.DefaultColor + " for " + Server.moneys + ".");
        }

        public override void Help(Player p)
        {
            Player.SendMessage(p, "/moreplz - ask's for more money.");
            Player.SendMessage(p, "Be carefull with this cmd it could get you banned!");
        }
    }
}
dryfly21
 
Posts: 135
Joined: 07 Apr 2012, 03:27

Next

Return to Custom Commands

Who is online

Users browsing this forum: No registered users and 2 guests