Hello sdrnavin,
Code:
//Attaching functions to the TeamSpeak callbacks.
TeamSpeakCallbacks.onIgnoredWhisperEvent += onIgnoredWhisperEvent;
private static void onIgnoredWhisperEvent(uint64 serverConnectionHandlerID, anyID clientID)
{
/*
* Add sending client to whisper allow list so own client will hear the voice data.
* It is sufficient to add a clientID only once, not everytime this event is called.
* However it won't hurt to add the same clientID to the allow list repeatedly, but is is not necessary.
*/
Debug.Log("Enter onIgnoredWhisperEvent");
ts3_client.AllowWhispersFrom(serverConnectionHandlerID, clientID);
}
// an example how to use whisper list
private void whisperlist()
{
// ID of the client whose whisper list is modified. If set to 0, the own client is modified (same as setting to own client ID).
ushort _clientID = 0;
// Array of channel IDs, terminated ! with 0. These channels will be added to the whisper list.
// To clear the list, pass NULL or an empty array.
ulong[] _targetChannelIDArray = new ulong[2];
_targetChannelIDArray[0] = 1; // 1 = Channel 1
_targetChannelIDArray[1] = 0;
// Array of client IDs, terminated ! with 0. These clients will be added to the whisper list.
// To clear the list, pass NULL or an empty array.
ushort[] _targetClientIDArray = null;
ts3_client.RequestClientSetWhisperList(_clientID, _targetChannelIDArray, _targetClientIDArray);
}
Regards,
Alex G.