plugins/include/sdktools_voice.inc
author Borja Ferrer <faluco@alliedmods.net>
Sat Aug 04 00:09:10 2007 +0000 (2007-08-04)
changeset 1262 843e9ed0ff29
parent 1247 26e4ba1e6cd2
child 1330 ab94316bb52b
permissions -rw-r--r--
fixed amb728, precache slap sounds
     1 /**
     2  * vim: set ts=4 :
     3  * ===============================================================
     4  * SourceMod (C)2004-2007 AlliedModders LLC.  All rights reserved.
     5  * ===============================================================
     6  *
     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
    12  *
    13  * Version: $Id$
    14  */
    15 
    16 #if defined _sdktools_voice_included
    17   #endinput
    18 #endif
    19 #define _sdktools_voice_included
    20 
    21 /**
    22  * @section voice flags.
    23  */
    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. */
    28  
    29 /**
    30  * @endsection
    31  */
    32 
    33 /**
    34  * Set the client listening flags.
    35  *
    36  * @param client		The client index
    37  * @param flags		The voice flags
    38  * @noreturn
    39  */
    40 native SetClientListeningFlags(client, flags);
    41 
    42 /**
    43  * Retrieve the client current listening flags.
    44  *
    45  * @param client		The client index
    46  * @return			The current voice flags
    47  */
    48 native GetClientListeningFlags(client);
    49 
    50 /**
    51  * Set the receiver ability to listen to the sender.
    52  *
    53  * @param iReceiver		The listener index.
    54  * @param iSender		The sender index.
    55  * @return			True if successful otherwise false.
    56  */
    57 native bool:SetClientListening(iReceiver, iSender, bool:bListen);
    58 
    59 /**
    60  * Retrieves if the receiver can listen to the sender.
    61  *
    62  * @param iReceiver		The listener index.
    63  * @param iSender		The sender index.
    64  * @return			True if successful otherwise false.
    65  */
    66 native bool:GetClientListening(iReceiver, iSender);