/teamchat - (Zombie Survival)

/teamchat - (Zombie Survival)

Postby Leeizazombie » 30 Mar 2014, 01:05

This command allows you to chat with your fellow Zombies / Humans, whichever one you are.
This is good for telling other zombies that you see a human, without alerting the human has been spotted.
Also humans can discuss their secret hideouts without telling the zombies.

I'd like to thank Dzienny for helping me.

Syntax:
/teamchat (message)
/tc (message)

Here is the code:
Code: Select all
using System;

namespace MCDzienny
{
    public class CmdCompanionChat : Command
    {
        public override string name { get { return "teamchat"; } }
        public override string shortcut { get { return "tc"; } }
        public override string type { get { return "other"; } }
        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; }
            if (p.isZombie)
            {
                Player.players.ForEachSync(pl =>
                {
                    {
                        if (pl.isZombie)
                        {
                            Player.SendMessage(pl, "%c*Zombies - %f" + p.color + p.PublicName + ":%f " + message);
                        }
                    }
                });
            }
            if (!p.isZombie)
            {
                Player.players.ForEachSync(pl =>
                {
                   
                        if (!pl.isZombie)
                        {
                            Player.SendMessage(pl, "%a*Humans - %f" + p.color + p.PublicName + ":%f " + message);
                        }
                   
                });
            }
           
        }
        public override void Help(Player p)
        {
            Player.SendMessage(p, "/tc (message) - Chat to your allies.");
        }
    }
}
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
User avatar
Leeizazombie
 
Posts: 536
Joined: 10 Jun 2013, 17:45
Location: Ireland.

Re: /teamchat - (Zombie Survival)

Postby HelloWorldCool » 31 Mar 2014, 03:42

I very much like this command.

The only thing is maybe an easier alias and string shortcut for players to remember.
Like:

/zombchat
/zbc


But Truly a great command, Good job Leeizazombie and Dzienny :)
Download fCraft maps! - viewtopic.php?f=25&t=3012!



Note: The Developer(s) of MCDzienny have resigned and the software is no longer supported.
Errors are bound to occur and Mojang has not attempted to resolve them.
User avatar
HelloWorldCool
 
Posts: 867
Joined: 18 Oct 2011, 00:19
Location: MCDzienny Forums, HelloWorldCool Forums

Re: /teamchat - (Zombie Survival)

Postby dzienny » 03 Apr 2014, 00:02

I think it's a very useful command for the zombie game. Good job! <ok>
User avatar
dzienny
Administrator
 
Posts: 1181
Joined: 23 Jan 2011, 14:27

Re: /teamchat - (Zombie Survival)

Postby joppiesaus » 07 Apr 2014, 19:25

That's really usefull. Now we can chat "secretly" to each other without the enemys noticing it.
joppiesaus
 
Posts: 379
Joined: 20 Aug 2012, 07:28
Location: in a obsedian house, with glass in it so i can see the lava!


Return to Custom Commands

Who is online

Users browsing this forum: No registered users and 3 guests

cron