Minor changes

This commit is contained in:
Jackzie 2021-11-09 10:29:58 -06:00
parent 585ebc724c
commit cf2cf9038d
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 3 additions and 2 deletions

View file

@ -97,6 +97,7 @@ public Action SoundHook(int[] clients, int& numClients, char sample[PLATFORM_MAX
for(int i = 0; i < numClients; i++) { for(int i = 0; i < numClients; i++) {
int client = clients[i]; int client = clients[i];
if(gaggedPlayers[client].FindValue(entity) > -1) { if(gaggedPlayers[client].FindValue(entity) > -1) {
// Swap gagged player to end of list, then remove it (dec. numClients is effectively same)
int swap = clients[numClients - 1]; int swap = clients[numClients - 1];
clients[numClients - 1] = client; clients[numClients - 1] = client;
clients[i] = swap; clients[i] = swap;

View file

@ -40,8 +40,8 @@ public void OnPluginStart() {
PluginCvarTimeout = CreateConVar("l4d_rts_timeout", "30", "How long will the server stay disconnected from matchmaking? 0 - never restore matchmaking connection", 0, true, 0.0, true, 300.0); PluginCvarTimeout = CreateConVar("l4d_rts_timeout", "30", "How long will the server stay disconnected from matchmaking? 0 - never restore matchmaking connection", 0, true, 0.0, true, 300.0);
PluginCvarImmuneLevel = CreateConVar("l4d_rts_immunelevel", "1", "Any player >= to this level will cancel the lobby vote.", 0); PluginCvarImmuneLevel = CreateConVar("l4d_rts_immunelevel", "1", "Any player >= to this level will cancel the lobby vote.", 0);
RegAdminCmd("sm_rts", Command_MakeReservation, ADMFLAG_ROOT, "Free the server from all players, then reserve it."); RegAdminCmd("sm_rts", Command_MakeReservation, ADMFLAG_BAN, "Free the server from all players, then reserve it.");
RegAdminCmd("sm_cr", Command_CancelReservation, ADMFLAG_ROOT, "Cancel reservation and make server public again."); RegAdminCmd("sm_cr", Command_CancelReservation, ADMFLAG_BAN, "Cancel reservation and make server public again.");
SteamGroupExclusiveCvar = FindConVar("sv_steamgroup_exclusive"); SteamGroupExclusiveCvar = FindConVar("sv_steamgroup_exclusive");
SearchKeyCvar = FindConVar("sv_search_key"); SearchKeyCvar = FindConVar("sv_search_key");