teame06@1235: /** teame06@1235: * vim: set ts=4 : teame06@1235: * =============================================================== teame06@1235: * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. teame06@1235: * =============================================================== teame06@1235: * teame06@1235: * This file is part of the SourceMod/SourcePawn SDK. This file may only be used teame06@1235: * or modified under the Terms and Conditions of its License Agreement, which is found teame06@1235: * in LICENSE.txt. The Terms and Conditions for making SourceMod extensions/plugins teame06@1235: * may change at any time. To view the latest information, see: teame06@1235: * http://www.sourcemod.net/license.php teame06@1235: * teame06@1235: * teame06@1235: */ teame06@1235: teame06@1235: #if defined _sdktools_voice_included teame06@1235: #endinput teame06@1235: #endif teame06@1235: #define _sdktools_voice_included teame06@1235: teame06@1235: /** teame06@1235: * @section voice flags. teame06@1235: */ teame06@1235: #define VOICE_NORMAL 0 /**< Allow the client to listen and speak normally. */ teame06@1235: #define VOICE_MUTED 1 /**< Mutes the client from speaking to everyone. */ teame06@1235: #define VOICE_SPEAKALL 2 /**< Allow the client to speak to everyone. */ teame06@1235: #define VOICE_LISTENALL 4 /**< Allow the client to listen to everyone. */ teame06@1235: teame06@1235: /** teame06@1235: * @endsection teame06@1235: */ teame06@1235: teame06@1235: /** teame06@1235: * Set the client listening flags. teame06@1235: * teame06@1235: * @param client The client index teame06@1235: * @param flags The voice flags teame06@1235: * @noreturn teame06@1235: */ teame06@1235: native SetClientListeningFlags(client, flags); teame06@1235: teame06@1235: /** teame06@1235: * Retrieve the client current listening flags. teame06@1235: * teame06@1235: * @param client The client index teame06@1235: * @return The current voice flags teame06@1235: */ teame06@1235: native GetClientListeningFlags(client); teame06@1235: teame06@1235: /** teame06@1235: * Set the receiver ability to listen to the sender. teame06@1235: * teame06@1235: * @param iReceiver The listener index. teame06@1235: * @param iSender The sender index. teame06@1235: * @return True if successful otherwise false. teame06@1235: */ teame06@1235: native bool:SetClientListening(iReceiver, iSender, bool:bListen); teame06@1235: teame06@1235: /** teame06@1235: * Retrieves if the receiver can listen to the sender. teame06@1235: * teame06@1235: * @param iReceiver The listener index. teame06@1235: * @param iSender The sender index. teame06@1235: * @return True if successful otherwise false. teame06@1235: */ teame06@1235: native bool:GetClientListening(iReceiver, iSender);