/phide - hides you but without any messages to Op+

/phide - hides you but without any messages to Op+

Postby g0d01w4r99 » 27 Jun 2011, 16:52

Read the title.
Again, something I coded while MCLawl was still in the game.
And, again, theres probably millions of those out there, so I don't even know why I'm posting this.

Code: Select all
using System;

namespace MCDzienny
{
    public class CmdPhide : Command
    {       
        public override string name { get { return "phide"; } }
        public override string shortcut { get { return ""; } }
        public override string type { get { return ""; } }
        public override bool museumUsable { get { return false; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Admin; } }
       
public override void Use(Player p, string message) {
       
        p.hidden = !p.hidden;
            if (p.hidden)
            {
                Player.GlobalDie(p, true);               
                Player.GlobalChat(p, "&c- " + p.color + p.prefix + p.name + Server.DefaultColor + " disconnected.", false);
               
            }
            else
            {
                Player.GlobalSpawn(p, p.pos[0], p.pos[1], p.pos[2], p.rot[0], p.rot[1], false,"");               
                Player.GlobalChat(p, "&a+ " + p.color + p.prefix + p.name + Server.DefaultColor + " joined the game.", false);               
            }
}
        public override void Help(Player p)
        {
            Player.SendMessage(p, "/phide - Hides you but without any messages to Op+.");
        }
    }
}
Image
User avatar
g0d01w4r99
 
Posts: 453
Joined: 09 May 2011, 13:05
Location: Behind you.

Re: /phide; Hides you but without any messages to Op+

Postby jkl139 » 27 Jun 2011, 17:27

g0d01w4r99 wrote:Read the title.
Again, something I coded while MCLawl was still in the game.
And, again, theres probably millions of those out there, so I don't even know why I'm posting this.


I saw a command on Mclawl forums, called /ninja, same effect :D
Image
Image
User avatar
jkl139
 
Posts: 444
Joined: 13 Jun 2011, 11:46
Location: MCDzienny Forum

Re: /phide; Hides you but without any messages to Op+

Postby g0d01w4r99 » 27 Jun 2011, 18:47

Ah, ok then. Still, no similar commands were uploaded on this site, so I'm all good.
Image
User avatar
g0d01w4r99
 
Posts: 453
Joined: 09 May 2011, 13:05
Location: Behind you.

Re: /phide; Hides you but without any messages to Op+

Postby jkl139 » 27 Jun 2011, 18:55

g0d01w4r99 wrote:Ah, ok then. Still, no similar commands were uploaded on this site, so I'm all good.


I want to learn coding, dont know. Can you maybe teach me the basics? I'll call you "Master" :D
No, just kidding. Nut seriously, can you teach me? :D
Image
Image
User avatar
jkl139
 
Posts: 444
Joined: 13 Jun 2011, 11:46
Location: MCDzienny Forum

Re: /phide; Hides you but without any messages to Op+

Postby g0d01w4r99 » 27 Jun 2011, 18:58

I want to learn coding, dont know. Can you maybe teach me the basics? I'll call you "Master"
No, just kidding. Nut seriously, can you teach me?

Nut? ^_^'
Anyway, C# is not really my style. I rarely do C# now that I have other interests. Java, that is.
And still, write "C# basics" on youtube, and theres countless videos about it.
Image
User avatar
g0d01w4r99
 
Posts: 453
Joined: 09 May 2011, 13:05
Location: Behind you.

Re: /phide; Hides you but without any messages to Op+

Postby jkl139 » 27 Jun 2011, 19:16

g0d01w4r99 wrote:
I want to learn coding, dont know. Can you maybe teach me the basics? I'll call you "Master"
No, just kidding. Nut seriously, can you teach me?

Nut? ^_^'
Anyway, C# is not really my style. I rarely do C# now that I have other interests. Java, that is.
And still, write "C# basics" on youtube, and theres countless videos about it.


Ima search another teacher, pff :P
Image
Image
User avatar
jkl139
 
Posts: 444
Joined: 13 Jun 2011, 11:46
Location: MCDzienny Forum

Re: /phide; Hides you but without any messages to Op+

Postby PlatinumKiller » 28 Jun 2011, 01:35

I use visual studio too,
Thanks you posted that here was willing to find that.
Image
User avatar
PlatinumKiller
 
Posts: 388
Joined: 22 Jun 2011, 22:55
Location: MCDzienny Forums

Re: /phide; Hides you but without any messages to Op+

Postby jkl139 » 28 Jun 2011, 06:26

PlatinumKiller wrote:I use visual studio too,
Thanks you posted that here was willing to find that.


There are like 500 mcforge custom commands, they work here?
Image
Image
User avatar
jkl139
 
Posts: 444
Joined: 13 Jun 2011, 11:46
Location: MCDzienny Forum

Re: /phide; Hides you but without any messages to Op+

Postby g0d01w4r99 » 28 Jun 2011, 07:22

Of course they do, unless they contain a feature from MCForge, in that case, no they don't.
Image
User avatar
g0d01w4r99
 
Posts: 453
Joined: 09 May 2011, 13:05
Location: Behind you.

Re: /phide; Hides you but without any messages to Op+

Postby jkl139 » 28 Jun 2011, 12:27

g0d01w4r99 wrote:Of course they do, unless they contain a feature from MCForge, in that case, no they don't.


Great •__•
^__^
Image
Image
User avatar
jkl139
 
Posts: 444
Joined: 13 Jun 2011, 11:46
Location: MCDzienny Forum


Return to Custom Commands

Who is online

Users browsing this forum: No registered users and 5 guests

cron