Esempio n. 1
0
 private static void _vs_VoiceClientConnected(string clientGUID, string teamspeakID, ushort teamspeakClientID, long connectionID, string clientName, bool micMuted, bool speakersMuted)
 {
     _vs.ConfigureClient(connectionID, "Halifax", false);
     _vs.SendUpdate(connectionID, new PureVoice.VoiceLocationInformation(teamspeakClientID)
     {
     });
 }
Esempio n. 2
0
        private void _voiceServer_VoiceClientConnected(string clientGUID, string teamspeakID, ushort teamspeakClientID, long connectionID, string clientName, bool micMuted, bool speakersMuted)
        {
            var p = GetPlayerBySessionId(clientGUID);

            if (p != null)
            {
                logger.Debug($"VoiceConnect {p.socialClubName} {teamspeakID} {teamspeakClientID} {connectionID}");
                _voiceServer.ConfigureClient(connectionID, p.GetData("PLAYER_TEAMSPEAK_NAME", ""), p.IsAdmin());
                p.setData("VOICE_ID", connectionID);
                p.setData("VOICE_TS_ID", teamspeakClientID);
                p.setData("PLAYER_TEAMSPEAK_IDENT", teamspeakID);
            }
        }
Esempio n. 3
0
        private void _voiceServer_VoiceClientConnected(string clientGUID, string teamspeakID, ushort teamspeakClientID, long connectionID, string clientName, bool micMuted, bool speakersMuted)
        {
            var p = API.getAllPlayers().ToList().FirstOrDefault(c => c.socialClubName == clientGUID);

            if (p != null)
            {
                logger.Debug("VoiceConnect {0} {1} {2} {3}", p.socialClubName, teamspeakID, teamspeakClientID, connectionID);
                _voiceServer.ConfigureClient(connectionID, p.name, false);
                p.setData("VOICE_ID", connectionID);
                p.setData("VOICE_TS_ID", teamspeakClientID);
                p.setData("VOICE_TEAMSPEAK_IDENT", teamspeakID);
                API.triggerResourceEvent("PUREVOICE_CLIENT_CONNECTED", p, micMuted, speakersMuted);
            }
        }