Thread: [ANY] VoiceHook
View Single Post
Author Message
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 02-18-2016 , 10:18   [ANY] VoiceHook
Reply With Quote #1

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

Last edited by Accelerator; 11-06-2019 at 11:01.
Accelerator is offline