Update CS:GO team score gamedata.
3 * =============================================================================
5 * Part of Basecomm plugin, menu and other functionality.
7 * SourceMod (C)2004-2011 AlliedModders LLC. All rights reserved.
8 * =============================================================================
10 * This program is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU General Public License, version 3.0, as published by the
12 * Free Software Foundation.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
19 * You should have received a copy of the GNU General Public License along with
20 * this program. If not, see <http://www.gnu.org/licenses/>.
22 * As a special exception, AlliedModders LLC gives you permission to link the
23 * code of this program (as well as its derivative works) to "Half-Life 2," the
24 * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
25 * by the Valve Corporation. You must obey the GNU General Public License in
26 * all respects for all other code used. Additionally, AlliedModders LLC grants
27 * this exception to all derivative works. AlliedModders LLC defines further
28 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
29 * or <http://www.sourcemod.net/license.php>.
34 public Native_IsClientGagged(Handle:hPlugin, numParams)
36 new client = GetNativeCell(1);
37 if (client < 1 || client > MaxClients)
39 return ThrowNativeError(SP_ERROR_NATIVE, "Invalid client index %d", client);
42 if (!IsClientInGame(client))
44 return ThrowNativeError(SP_ERROR_NATIVE, "Client %d is not in game", client);
47 return g_Gagged[client];
50 public Native_IsClientMuted(Handle:hPlugin, numParams)
52 new client = GetNativeCell(1);
53 if (client < 1 || client > MaxClients)
55 return ThrowNativeError(SP_ERROR_NATIVE, "Invalid client index %d", client);
58 if (!IsClientInGame(client))
60 return ThrowNativeError(SP_ERROR_NATIVE, "Client %d is not in game", client);
63 return g_Muted[client];
66 public Native_SetClientGag(Handle:hPlugin, numParams)
68 new client = GetNativeCell(1);
69 if (client < 1 || client > MaxClients)
71 return ThrowNativeError(SP_ERROR_NATIVE, "Invalid client index %d", client);
74 if (!IsClientInGame(client))
76 return ThrowNativeError(SP_ERROR_NATIVE, "Client %d is not in game", client);
79 new bool:gagState = GetNativeCell(2);
88 PerformGag(-1, client, true);
92 if (!g_Gagged[client])
97 PerformUnGag(-1, client, true);
103 public Native_SetClientMute(Handle:hPlugin, numParams)
105 new client = GetNativeCell(1);
106 if (client < 1 || client > MaxClients)
108 return ThrowNativeError(SP_ERROR_NATIVE, "Invalid client index %d", client);
111 if (!IsClientInGame(client))
113 return ThrowNativeError(SP_ERROR_NATIVE, "Client %d is not in game", client);
116 new bool:muteState = GetNativeCell(2);
125 PerformMute(-1, client, true);
129 if (!g_Muted[client])
134 PerformUnMute(-1, client, true);