MOVED TO http://1337-servers.proboards.com
Would you like to react to this message? Create an account in a few clicks or log in to continue.

MOVED TO http://1337-servers.proboards.com

The new C41337 website is now up and running!

You are not connected. Please login or register

/rape command

2 posters

Go down  Message [Page 1 of 1]

1/rape command Empty /rape command Sun Feb 26, 2012 2:07 pm

D12


Guest
Guest

Worked on this for about an hour, check for mistakes! Very Happy

Code:

using System;

namespace MCForge
{
    public class CmdRape : Command
    {
      //Created by Matthewd12 for use on C41337's server.
        public override string name { get { return "rape"; } }
        public override string shortcut { get { return ""; } }
        public override string type { get { return "other"; } }
        public override bool museumUsable { get { return true; } }
        public override LevelPermission deafultRank { get { return LevelPermission.Guest; } }
        public override void Use(Player p, string message)
        {
            Player who = Player.Find(message);
            if (who == null) { Player.Sendmessage(p, "Could not find player entered"); return; }
            if (who == p) { Player.Sendmessage(p, "Sorry, you can't rape yourself"); return; }
            if (who == "C41337") { Player.Sendmessage(p, "%5Bitch please..."); return; }
            if (who == "Matthewd12") { Player.Sendmessage(p, "%5In your dreams!"); return; }
            if (who == "the_first_kinta") { Player.Sendmessage(p, "%5You can do better than this..."); return; }
            if (who == "liam6890") { Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has walked in on Liam and his Pillow! AHH!!");
            if (who == urge) Player.GlobalMessage(p.prefix + p.color + p.name + "%6Is having the urge to rape");
            if (who == bust) Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has caught " + who.color + who.name + Server.DefaultColor + " in action.");
            else Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has raped " + who.color + who.name + Server.DefaultColor + "With the might of 10,000 C4's");
        }
        public override void Help(Player p)
        {
            Player.SendMessage(p, "/rape [player] - rape [player].");
            Player.SendMessage(p, "/rape urge - Pronounce your urge to rape!");
            Player.SendMessage(p, "/rape bust - Catch someone in action!");
        }
    }
}

2/rape command Empty Re: /rape command Sun Feb 26, 2012 2:55 pm

C41337

C41337
Creator
Creator

Ooooo Matt's on a roll lol looks pretty good I'll install it when I get home

3/rape command Empty Re: /rape command Sun Feb 26, 2012 4:03 pm

D12


Guest
Guest

Haha yeah now that I got the hang of it its really easy. Gotta prepare for some more advanced commands lol.

4/rape command Empty Re: /rape command Sun Feb 26, 2012 4:17 pm

C41337

C41337
Creator
Creator

i get a compilation error when i try and compile it so ill take a look and repost it with a the fixed version

5/rape command Empty Re: /rape command Sun Feb 26, 2012 4:24 pm

D12


Guest
Guest

Aww fuck lol, alright.

6/rape command Empty Re: /rape command Sun Feb 26, 2012 4:56 pm

C41337

C41337
Creator
Creator

Code:

using System;

namespace MCForge
{
    public class CmdRape : Command
    {
      //Created by Matthewd12 for use on C41337's server.
        public override string name { get { return "rape"; } }
        public override string shortcut { get { return ""; } }
        public override string type { get { return "other"; } }
        public override bool museumUsable { get { return true; } }
//you spelled default wrong lol
        public override LevelPermission deafultRank { get { return LevelPermission.Guest; } }
        public override void Use(Player p, string message)
        {
            Player who = Player.Find(message);
            {
                if (who == null)
                {
                    Player.SendMessage(p, "Could not find player entered");
                    if (who == p)
                    {
                        Player.SendMessage(p, "Sorry, you can't rape yourself");
                        if (who.name == "C41337")
                        {
                            Player.SendMessage(p, "%5Bitch please...");
                            if (who.name == "Matthewd12")
                            {
                                Player.SendMessage(p, "%5In your dreams!");
                                if (who.name == "the_first_kinta")
                                {
                                    Player.SendMessage(p, "%5You can do better than this...");
                                    if (who.name == "liam6890")
                                    {
                                        Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has walked in on Liam and his Pillow! AHH!!");
                                        if (who.name == "urge")
                                        {
                                            Player.GlobalMessage(p.prefix + p.color + p.name + "%6Is having the urge to rape");
                                            if (who.name == "bust")
                                            {
                                                Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has caught " + who.color + who.name + Server.DefaultColor + " in action.");
                                                if (who.name == "")
                                                {
                                                    Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has raped " + who.color + who.name + Server.DefaultColor + "With the might of 10,000 C4s");

                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
       
        public override void Help(Player p)
        {
            Player.SendMessage(p, "/rape [player] - rape [player].");
            Player.SendMessage(p, "/rape urge - Pronounce your urge to rape!");
            Player.SendMessage(p, "/rape bust - Catch someone in action!");
        }
    }
}



Last edited by C41337 on Sun Feb 26, 2012 4:59 pm; edited 1 time in total (Reason for editing : matt derped)

7/rape command Empty Re: /rape command Sun Feb 26, 2012 5:54 pm

D12


Guest
Guest

Im guessing this isnt much better

Code:

using System;

namespace MCForge
{
    public class CmdRape : Command
    {
      //Created by Matthewd12 for use on C41337's server.
        public override string name { get { return "rape"; } }
        public override string shortcut { get { return ""; } }
        public override string type { get { return "other"; } }
        public override bool museumUsable { get { return true; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Guest; } }
        public override void Use(Player p, string message)
        {
            Player who = Player.Find(message);
           
            {
                if (who == null) { Player.SendMessage(p, "Could not find player entered"); return; }
                {
                    if (who == p) { Player.SendMessage(p, "Sorry, you can't rape yourself"); return; }
                    {
                        if (who == "C41337") { Player.SendMessage(p, "%5Bitch please..."); return; }
                        {
                            if (who == "Matthewd12") { Player.SendMessage(p, "%5In your dreams!"); return; }
                            {
                                if (who == "the_first_kinta") { Player.SendMessage(p, "%5You can do better than this..."); return; }
                                {
                                    if (who == "liam6890") { Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has walked in on Liam and his Pillow! AHH!!");
                                    {
                                        if (who == urge) Player.GlobalMessage(p.prefix + p.color + p.name + "%6Is having the urge to rape");
                                        {
                                            if (who == bust) Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has caught " + who.color + who.name + Server.DefaultColor + " in action.");
                                            {
                                                if Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has raped " + who.color + who.name + Server.DefaultColor + "With the might of 10,000 C4's");
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }

        public override void Help(Player p)
        {
            Player.SendMessage(p, "/rape [player] - rape [player].");
            Player.SendMessage(p, "/rape urge - Pronounce your urge to rape!");
            Player.SendMessage(p, "/rape bust - Catch someone in action!");
        }
    }
}

8/rape command Empty Re: /rape command Sun Feb 26, 2012 6:19 pm

C41337

C41337
Creator
Creator

still get an error lol

9/rape command Empty Re: /rape command Sun Feb 26, 2012 6:23 pm

D12


Guest
Guest

Alright well im stumped.

10/rape command Empty Re: /rape command Sun Feb 26, 2012 6:29 pm

D12


Guest
Guest

Code:

using System;

namespace MCForge
{
    public class CmdRape : Command
    {
      //Created by Matthewd12 for use on C41337's server.
        public override string name { get { return "rape"; } }
        public override string shortcut { get { return ""; } }
        public override string type { get { return "other"; } }
        public override bool museumUsable { get { return true; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Guest; } }
        public override void Use(Player p, string message)
        {
            Player who = Player.Find(message);
                if (who == null) { Player.SendMessage(p, "Could not find player entered"); return; }
                {
                    if (who == p) { Player.SendMessage(p, "Sorry, you can't rape yourself"); return; }
                    {
                        if (who == "C41337") { Player.SendMessage(p, "%5Bitch please..."); return; }
                        {
                            if (who == "Matthewd12") { Player.SendMessage(p, "%5In your dreams!"); return; }
                            {
                                if (who == "the_first_kinta") { Player.SendMessage(p, "%5You can do better than this..."); return; }
                                {
                                    if (who == "liam6890") { Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has walked in on Liam and his Pillow! AHH!!");
                                    {
                                        if (who == urge) Player.GlobalMessage(p.prefix + p.color + p.name + "%6Is having the urge to rape");
                                        {
                                            if (who == bust) Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has caught " + who.color + who.name + Server.DefaultColor + " in action.");
                                            {
                                                Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has raped " + who.color + who.name + Server.DefaultColor + "With the might of 10,000 C4's");
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }

        public override void Help(Player p)
        {
            Player.SendMessage(p, "/rape [player] - rape [player].");
            Player.SendMessage(p, "/rape urge - Pronounce your urge to rape!");
            Player.SendMessage(p, "/rape bust - Catch someone in action!");
        }
    }
}

11/rape command Empty Re: /rape command Sun Feb 26, 2012 6:35 pm

C41337

C41337
Creator
Creator

ok i re wrote the entire thing i havnt tested it but it should work fine.
Code:

using System;

namespace MCForge
{
    public class CmdRape : Command
    {
      //Created by Matthewd12 for use on C41337's server.
        public override string name { get { return "rape"; } }
        public override string shortcut { get { return ""; } }
        public override string type { get { return "other"; } }
        public override bool museumUsable { get { return true; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Guest; } }
        public override void Use(Player p, string message)
        {
            Player who = Player.Find(message.Split(' ')[0]);
            if (message == "") { Help(p); return; }
            if (who == null) { Player.SendMessage(p, "Could not find player entered"); return; }
            if (who == p) { Player.SendMessage(p, "Sorry, You can't do this kinda thing to yourself."); return; }
            if (who.name == "C41337") { Player.SendMessage(p, "Bitch please...."); return; }
            if (who.name == "Matthewd12") { Player.SendMessage(p, "%5In your dreams!"); return; }
            if (who.name == "the_first_kinta") { Player.SendMessage(p, "%5You can do better than this..."); return; }
            if (who.name == "liam6890") { Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has walked in on Liam and his Pillow! AHH!!");

                {


                    Player.GlobalMessage(p.prefix + p.color + p.name + Server.DefaultColor + " has raped " + who.color + who.name + Server.DefaultColor + "With the might of 10,000 C4's");
                }
            }
        }
           
       
       
        public override void Help(Player p)
        {
            Player.SendMessage(p, "/rape [player] - rapes [player].");
        }
    }
}

12/rape command Empty Re: /rape command Wed Feb 29, 2012 1:40 am

D12


Guest
Guest

Ok I'll see what I can do with these weird string things. While your at it you gotta watch the video below my posts rofl. That so you in Canadian land diggin your new Suzuki.

13/rape command Empty Re: /rape command Wed Feb 29, 2012 9:01 pm

C41337

C41337
Creator
Creator

theres no video lol i was wondering why it just said C41337 and his new car

14/rape command Empty Re: /rape command Tue Mar 06, 2012 10:34 pm

D12


Guest
Guest

Code:

using System;

namespace MCForge
{
    public class CmdRape : Command
    {
      //Created by Matthewd12 for use on C41337's server.
        public override string name { get { return "rape"; } }
        public override string shortcut { get { return ""; } }
        public override string type { get { return "other"; } }
        public override bool museumUsable { get { return true; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Guest; } }
        public override void Use(Player p, string message)
        {
            if (message = "")
            {
                Help(p); return;
            }
            Player who = Player.Find(message.Split(' ')[0]);
            if (p == null || p.hidden)
            {
                Player.SendMessage(p, "Could not find player specified.");
            }
            if (who == p)
            {
                Player.SendMessage(p, "cannot rape yourself");
            }
            if (who != null)
            {

                string str = message.Split(' ')[1];
                if (str == "C41337") { Player.Sendmessage(p, "%5Bitch please..."); return; }
                if (str == "Matthewd12") { Player.Sendmessage(p, "%5In your dreams!"); return; }
                if (str == "hard") { Player.GlobalMessage(p.color + p.name + Server.DefaultColor + " rapped " + who.color + who.name + Server.DefaultColor + " hard."); }
                if (str == "sneak") { Player.GlobalMessage(p.color + p.name + Server.DefaultColor + " snuck up behind " + who.color + who.name + Server.DefaultColor + " and rapped them!"); }
                if (str == "want") { Player.GlobalMessage(p.color + p.name + Server.DefaultColor + " wants to rape " + who.color + who.name); }
                if (str == "passionate") { Player.GlobalMessage(p.color + p.name + Server.DefaultColor + " walked up behind " + who.color + who.name + Server.DefaultColor + " and gracefully raped them."); }
                if (str == "bond") { Player.GlobalMessage(p.color + p.name + Server.DefaultColor + "  snuck up to the clueless " + who.color + who.name + Server.DefaultColor + " and pushed them to the floor, bonded them, raped, and ran!"); }
                if (str == "date") { Player.GlobalMessage(p.color + p.name + Server.DefaultColor + " went on a date with " + who.color + who.name + Server.DefaultColor + " and date raped them!"); }
                if (str == "catch") { Player.GlobalMessage(p.color + p.name + Server.DefaultColor + " caught " + who.color + who.name + Server.Defaultcolor + " in action and called the cops!"); }
           
            }
        }



        public override void Help(Player p)
        {
            Player.SendMessage(p, "/rape [player] [option] - Choose what you do to [player]. ");
            Player.SendMessage(p, "Available options: hard, sneak, want, passionate, bond, date, catch. ");
        }
    }
}

15/rape command Empty Re: /rape command Tue Mar 06, 2012 10:36 pm

D12


Guest
Guest

If that doesnt work remove the who strings and retry then it should.

Sponsored content



Back to top  Message [Page 1 of 1]

Similar topics

-

» Request for Short Command

Permissions in this forum:
You cannot reply to topics in this forum