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.");
}
}
}