Ejemplo n.º 1
0
        public void Handle(PlayerClient nClient, QueueAccountPlayerMessage queue)
        {
            var client = Players.Find(p => p.Client == nClient);

            if (client == null)
            {
                client = new ClientQueue(nClient);
                Players.Add(client);
            }

            var position = (Players.IndexOf(client) + 1);
            client.Client.SendMessage(FormatData(position, GetMaxSubscriber(), GetMaxNoSubscriber(), IsSubscribed(nClient.Infos.AccountId)));

            if(!client.CanConnect) return;

            client.Client.SendMessage("Adxprpgy\0Ac4\0AH601;1;75;1|602;1;75;1\0AlK0\0AQQuel+est+mon+joueur+de+football+pr%C3%A9f%C3%A9r%C3%A9+%3F");
            Players.Remove(client);
        }
Ejemplo n.º 2
0
        public void Handle(PlayerClient nClient, QueueAccountPlayerMessage queue)
        {
            var client = Players.Find(p => p.Client == nClient);

            if (client == null)
            {
                client = new ClientQueue(nClient);
                Players.Add(client);
            }

            var position = (Players.IndexOf(client) + 1);

            client.Client.SendMessage(FormatData(position, GetMaxSubscriber(), GetMaxNoSubscriber(), IsSubscribed(nClient.Infos.AccountId)));

            if (!client.CanConnect)
            {
                return;
            }

            client.Client.SendMessage("Adxprpgy\0Ac4\0AH601;1;75;1|602;1;75;1\0AlK0\0AQQuel+est+mon+joueur+de+football+pr%C3%A9f%C3%A9r%C3%A9+%3F");
            Players.Remove(client);
        }