mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 05:53:20 +00:00
Minor changes
This commit is contained in:
parent
585ebc724c
commit
cf2cf9038d
2 changed files with 3 additions and 2 deletions
|
@ -97,6 +97,7 @@ public Action SoundHook(int[] clients, int& numClients, char sample[PLATFORM_MAX
|
|||
for(int i = 0; i < numClients; i++) {
|
||||
int client = clients[i];
|
||||
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];
|
||||
clients[numClients - 1] = client;
|
||||
clients[i] = swap;
|
||||
|
|
|
@ -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);
|
||||
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_cr", Command_CancelReservation, ADMFLAG_ROOT, "Cancel reservation and make server public again.");
|
||||
RegAdminCmd("sm_rts", Command_MakeReservation, ADMFLAG_BAN, "Free the server from all players, then reserve it.");
|
||||
RegAdminCmd("sm_cr", Command_CancelReservation, ADMFLAG_BAN, "Cancel reservation and make server public again.");
|
||||
|
||||
SteamGroupExclusiveCvar = FindConVar("sv_steamgroup_exclusive");
|
||||
SearchKeyCvar = FindConVar("sv_search_key");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue