skamonkey@3340: /** skamonkey@3340: * vim: set ts=4 : skamonkey@3340: * ============================================================================= skamonkey@3340: * SourceMod (C)2004-2011 AlliedModders LLC. All rights reserved. skamonkey@3340: * ============================================================================= skamonkey@3340: * skamonkey@3340: * This file is part of the SourceMod/SourcePawn SDK. skamonkey@3340: * skamonkey@3340: * This program is free software; you can redistribute it and/or modify it under skamonkey@3340: * the terms of the GNU General Public License, version 3.0, as published by the skamonkey@3340: * Free Software Foundation. skamonkey@3340: * skamonkey@3340: * This program is distributed in the hope that it will be useful, but WITHOUT skamonkey@3340: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS skamonkey@3340: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more skamonkey@3340: * details. skamonkey@3340: * skamonkey@3340: * You should have received a copy of the GNU General Public License along with skamonkey@3340: * this program. If not, see . skamonkey@3340: * skamonkey@3340: * As a special exception, AlliedModders LLC gives you permission to link the skamonkey@3340: * code of this program (as well as its derivative works) to "Half-Life 2," the skamonkey@3340: * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software skamonkey@3340: * by the Valve Corporation. You must obey the GNU General Public License in skamonkey@3340: * all respects for all other code used. Additionally, AlliedModders LLC grants skamonkey@3340: * this exception to all derivative works. AlliedModders LLC defines further skamonkey@3340: * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), skamonkey@3340: * or . skamonkey@3340: * skamonkey@3340: * Version: $Id$ skamonkey@3340: */ skamonkey@3340: skamonkey@3340: #if defined _basecomm_included skamonkey@3340: #endinput skamonkey@3340: #endif skamonkey@3340: #define _basecomm_included skamonkey@3340: skamonkey@3340: /** drifter01620@3645: * Called when a client is muted or unmuted drifter01620@3645: * drifter01620@3645: * @param client Client index drifter01620@3645: * @param muteState True if client was muted, false otherwise drifter01620@3645: */ drifter01620@3645: forward BaseComm_OnClientMute(client, bool:muteState); drifter01620@3645: drifter01620@3645: /** drifter01620@3645: * Called when a client is gagged or ungagged drifter01620@3645: * drifter01620@3645: * @param client Client index drifter01620@3645: * @param gagState True if client was gaged, false otherwise drifter01620@3645: */ drifter01620@3645: forward BaseComm_OnClientGag(client, bool:gagState); drifter01620@3645: drifter01620@3645: /** skamonkey@3340: * Returns whether or not a client is gagged skamonkey@3340: * skamonkey@3340: * @param client Client index. skamonkey@3340: * @return True if client is gagged, false otherwise. skamonkey@3340: */ skamonkey@3340: native bool:BaseComm_IsClientGagged(client); skamonkey@3340: skamonkey@3340: /** skamonkey@3340: * Returns whether or not a client is muted skamonkey@3340: * skamonkey@3340: * @param client Client index. skamonkey@3340: * @return True if client is muted, false otherwise. skamonkey@3340: */ skamonkey@3340: native bool:BaseComm_IsClientMuted(client); skamonkey@3340: skamonkey@3340: /** skamonkey@3340: * Sets a client's gag state skamonkey@3340: * skamonkey@3340: * @param client Client index. skamonkey@3340: * @param gagState True to gag client, false to ungag. skamonkey@3340: * @return True if this caused a change in gag state, false otherwise. skamonkey@3340: */ skamonkey@3340: native bool:BaseComm_SetClientGag(client, bool:gagState); skamonkey@3340: skamonkey@3340: /** skamonkey@3340: * Sets a client's mute state skamonkey@3340: * skamonkey@3340: * @param client Client index. skamonkey@3340: * @param muteState True to mute client, false to unmute. skamonkey@3340: * @return True if this caused a change in mute state, false otherwise. skamonkey@3340: */ skamonkey@3340: native bool:BaseComm_SetClientMute(client, bool:muteState); skamonkey@3340: skamonkey@3340: /* DO NOT EDIT BELOW THIS LINE */ skamonkey@3340: skamonkey@3340: public SharedPlugin:__pl_basecomm = skamonkey@3340: { skamonkey@3340: name = "basecomm", skamonkey@3340: file = "basecomm.smx", skamonkey@3340: #if defined REQUIRE_PLUGIN skamonkey@3340: required = 1, skamonkey@3340: #else skamonkey@3340: required = 0, skamonkey@3340: #endif skamonkey@3340: }; skamonkey@3340: skamonkey@3340: #if !defined REQUIRE_PLUGIN skamonkey@3340: public __pl_basecomm_SetNTVOptional() skamonkey@3340: { skamonkey@3340: MarkNativeAsOptional("BaseComm_IsClientGagged"); skamonkey@3340: MarkNativeAsOptional("BaseComm_IsClientMuted"); skamonkey@3340: MarkNativeAsOptional("BaseComm_SetClientGag"); skamonkey@3340: MarkNativeAsOptional("BaseComm_SetClientMute"); skamonkey@3340: } skamonkey@3340: #endif