Esempio n. 1
0
        public static void Chat(byte fromClient, Packet packet)
        {
            byte   id      = packet.ReadByte();
            string message = packet.ReadString();

            ServerSend.Chat(id, message);
        }
        public static void Chat(byte fromClient, Packet packet)
        {
            byte   id      = packet.ReadByte();
            string message = packet.ReadString();

            Log("Got Chat " + message + " From " + Server.clients[id].player.username);

            Server.clients[id].player.chat = message;

            ServerSend.Chat(id, message);
        }