1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/plugins/basecomm/forwards.sp Mon Sep 03 20:45:11 2012 +0100
1.3 @@ -0,0 +1,62 @@
1.4 +/**
1.5 + * vim: set ts=4 :
1.6 + * =============================================================================
1.7 + * SourceMod Basecomm
1.8 + * Part of Basecomm plugin, menu and other functionality.
1.9 + *
1.10 + * SourceMod (C)2004-2011 AlliedModders LLC. All rights reserved.
1.11 + * =============================================================================
1.12 + *
1.13 + * This program is free software; you can redistribute it and/or modify it under
1.14 + * the terms of the GNU General Public License, version 3.0, as published by the
1.15 + * Free Software Foundation.
1.16 + *
1.17 + * This program is distributed in the hope that it will be useful, but WITHOUT
1.18 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.19 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1.20 + * details.
1.21 + *
1.22 + * You should have received a copy of the GNU General Public License along with
1.23 + * this program. If not, see <http://www.gnu.org/licenses/>.
1.24 + *
1.25 + * As a special exception, AlliedModders LLC gives you permission to link the
1.26 + * code of this program (as well as its derivative works) to "Half-Life 2," the
1.27 + * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
1.28 + * by the Valve Corporation. You must obey the GNU General Public License in
1.29 + * all respects for all other code used. Additionally, AlliedModders LLC grants
1.30 + * this exception to all derivative works. AlliedModders LLC defines further
1.31 + * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
1.32 + * or <http://www.sourcemod.net/license.php>.
1.33 + *
1.34 + * Version: $Id$
1.35 + */
1.36 +
1.37 + FireOnClientMute(client, bool:muteState)
1.38 + {
1.39 + static Handle:hForward;
1.40 +
1.41 + if(hForward == INVALID_HANDLE)
1.42 + {
1.43 + hForward = CreateGlobalForward("BaseComm_OnClientMute", ET_Ignore, Param_Cell, Param_Cell);
1.44 + }
1.45 +
1.46 + Call_StartForward(hForward);
1.47 + Call_PushCell(client);
1.48 + Call_PushCell(muteState);
1.49 + Call_Finish();
1.50 + }
1.51 +
1.52 + FireOnClientGag(client, bool:gagState)
1.53 + {
1.54 + static Handle:hForward;
1.55 +
1.56 + if(hForward == INVALID_HANDLE)
1.57 + {
1.58 + hForward = CreateGlobalForward("BaseComm_OnClientGag", ET_Ignore, Param_Cell, Param_Cell);
1.59 + }
1.60 +
1.61 + Call_StartForward(hForward);
1.62 + Call_PushCell(client);
1.63 + Call_PushCell(gagState);
1.64 + Call_Finish();
1.65 + }
1.66 \ No newline at end of file