3 * ===============================================================
4 * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
5 * ===============================================================
7 * This file is part of the SourceMod/SourcePawn SDK. This file may only be used
8 * or modified under the Terms and Conditions of its License Agreement, which is found
9 * in LICENSE.txt. The Terms and Conditions for making SourceMod extensions/plugins
10 * may change at any time. To view the latest information, see:
11 * http://www.sourcemod.net/license.php
16 #if defined _sdktools_voice_included
19 #define _sdktools_voice_included
22 * @section voice flags.
24 #define VOICE_NORMAL 0 /**< Allow the client to listen and speak normally. */
25 #define VOICE_MUTED 1 /**< Mutes the client from speaking to everyone. */
26 #define VOICE_SPEAKALL 2 /**< Allow the client to speak to everyone. */
27 #define VOICE_LISTENALL 4 /**< Allow the client to listen to everyone. */
34 * Set the client listening flags.
36 * @param client The client index
37 * @param flags The voice flags
40 native SetClientListeningFlags(client, flags);
43 * Retrieve the client current listening flags.
45 * @param client The client index
46 * @return The current voice flags
48 native GetClientListeningFlags(client);
51 * Set the receiver ability to listen to the sender.
53 * @param iReceiver The listener index.
54 * @param iSender The sender index.
55 * @return True if successful otherwise false.
57 native bool:SetClientListening(iReceiver, iSender, bool:bListen);
60 * Retrieves if the receiver can listen to the sender.
62 * @param iReceiver The listener index.
63 * @param iSender The sender index.
64 * @return True if successful otherwise false.
66 native bool:GetClientListening(iReceiver, iSender);