Example #1
0
        static void Die(Client player, string[] cmd, int iarg)
        {
            VanillaSession real = player.Session as VanillaSession;

            if (real != null)
            {
                real.Attacker = new Attacked(player);
            }
            player.Session.Kill();
        }
        public static void Prod(Client sender, Client to)
        {
            Prod(to);
            to.TellChat(Chat.Green, sender.Name + " gave you a friendly push");
            sender.TellChat(Chat.Green, "You gave " + to.Name + " a friendly push");

            VanillaSession rs = to.Session as VanillaSession;

            if (rs != null)
            {
                //Sender see hurt
                sender.Queue.Queue(new EntityStatus(rs.EID, EntityStatuses.EntityHurt));
            }
        }