예제 #1
0
        public static Packet MakePacket(Player p, string motd)
        {
            bool  canFly = true, canNoClip = true, canSpeed = true, canRespawn = true, canThird = true;
            short jumpHeight = -1;
            bool  useMotd    = GetHacksFromMotd(p, motd, ref canFly, ref canNoClip,
                                                ref canSpeed, ref canRespawn, ref canThird, ref jumpHeight);

            if (useMotd)
            {
                return(Packet.HackControl(canFly, canNoClip, canSpeed, canRespawn, canThird, jumpHeight));
            }

            return(Packet.HackControl(p.Info.AllowFlying, p.Info.AllowNoClip, p.Info.AllowSpeedhack,
                                      p.Info.AllowRespawn, p.Info.AllowThirdPerson, p.Info.JumpHeight));
        }