Beispiel #1
0
        public void SendPlayers(List <Player> Plrs)
        {
            if (!HasPlayer())
            {
                return;
            }

            Player Plr = GetPlayer();

            PacketOut Out = new PacketOut((byte)Opcodes.F_SOCIAL_NETWORK);

            Out.WriteUInt16(0);
            Out.WriteByte(4);
            Out.WriteByte((byte)Plrs.Count);
            foreach (Player Dist in Plrs)
            {
                SocialInterface.BuildPlayerInfo(ref Out, Dist);
            }
            Out.WriteByte(1);
            Plr.SendPacket(Out);
        }