initial commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
../../../includes/dhooks.inc
|
||||
@@ -0,0 +1,57 @@
|
||||
#if defined _voiceannounceex_included_
|
||||
#endinput
|
||||
#endif
|
||||
#define _voiceannounceex_included_
|
||||
|
||||
public SharedPlugin:__pl_voiceannounceex =
|
||||
{
|
||||
name = "voiceannounce_ex",
|
||||
file = "voiceannounce_ex.smx",
|
||||
#if defined REQUIRE_PLUGIN
|
||||
required = 1,
|
||||
#else
|
||||
required = 0,
|
||||
#endif
|
||||
};
|
||||
|
||||
public __pl_voiceannounceex_SetNTVOptional()
|
||||
{
|
||||
MarkNativeAsOptional("IsClientSpeaking");
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Checks whether a client is speaking or not.
|
||||
*
|
||||
* @param client The client index to check against.
|
||||
*
|
||||
* @error Client is not valid, ingame, or client is a bot.
|
||||
*
|
||||
* @return True if client is speaking, false otherwise.
|
||||
*
|
||||
*/
|
||||
|
||||
native bool:IsClientSpeaking(client);
|
||||
|
||||
/**
|
||||
*
|
||||
* Called when a client is speaking.
|
||||
*
|
||||
* @param client The index of the client that is speaking.
|
||||
*
|
||||
* @return True to allow the client to talk, false otherwise.
|
||||
*
|
||||
*/
|
||||
|
||||
forward bool:OnClientSpeakingEx(client);
|
||||
|
||||
/**
|
||||
*
|
||||
* Called when a client end of speaking.
|
||||
*
|
||||
* @param client The index of the client.
|
||||
*
|
||||
* @noreturn
|
||||
*
|
||||
*/
|
||||
forward OnClientSpeakingEnd(client);
|
||||
Reference in New Issue
Block a user