예제 #1
0
 private void API_onPlayerDisconnected(Client player, string reason)
 {
     PlayerHears[player.handle.Value] = new Dictionary <string, VoiceLocationInformation>();
     if (player.hasData("VOICE_ID"))
     {
         _voiceServer.SendCommand(Convert.ToInt64(player.getData("VOICE_ID")), "DISCONNECT", "");
     }
     player.resetData("VOICE_ID");
     player.resetData("VOICE_TS_ID");
 }
예제 #2
0
 private void API_onPlayerDisconnected(Client player, string reason)
 {
     PlayerHears[player.GetCharacterId()] = new Dictionary <string, VoiceLocationInformation>();
     _voiceServer.SendCommand(player.GetData("VOICE_ID", 0L), "DISCONNECT", "");
 }