public virtual int RunVoiceTask(IVoiceServer <TClient> server)
        {
            var clientPositions = server.GetClients().Select(client => client.MakeClientPosition());

            server.SetPlayerPositions(clientPositions);

            return(_sleepTime);
        }
        /// <summary>
        /// Отслежевание позиций игроков
        /// </summary>
        public int RunVoiceTask(IVoiceServer <IGtmpVoiceClient> server)
        {
            var playersPositions = server.GetClients().Select(player =>
                                                              player.Player.vehicle == null
                    ? player.MakeClientPosition()
                    : player.MakeClientPosition(player.Player.vehicle.position, player.CameraRotation)
                                                              );

            server.SetPlayerPositions(playersPositions);
            return(_sleepTime);
        }
        public virtual int RunVoiceTask(IVoiceServer <IGtmpVoiceClient> server)
        {
            var clientPositions = server.GetClients().Select(client =>
            {
                if (client.Player.vehicle == null)
                {
                    return(client.MakeClientPosition());
                }
                else
                {
                    return(client.MakeClientPosition(client.Player.vehicle.position, client.CameraRotation));
                }
            });

            server.SetPlayerPositions(clientPositions);

            return(_sleepTime);
        }