This extension adds a function of capture events the player who at the moment speak.
Functions:
Code:
/**
* Called when a client is speaking.
*
* @param client Client index.
*/
forward void OnClientSpeaking(int client);
/**
* Called once a client speaking end.
*
* @param client Client index.
*/
forward void OnClientSpeakingEnd(int client);
/**
* Called once a client speaking start.
*
* @param client Client index.
*/
forward void OnClientSpeakingStart(int client);
/**
* Returns if a certain player is speaking.
*
* @param client Client index.
* @return True if player is speaking, false otherwise.
* @error Invalid client index.
*/
native bool IsClientSpeaking(int client);
https://github.com/Accelerator74/VoiceHook