mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 08:23:20 +00:00
Misc
This commit is contained in:
parent
4e97e7a9fa
commit
88b7ac09fc
4 changed files with 82 additions and 63 deletions
|
@ -96,11 +96,7 @@ public Action SoundHook(int clients[MAXPLAYERS], int& numClients, char sample[PL
|
|||
int client = clients[i];
|
||||
if(gaggedPlayers[client].FindValue(entity) > -1) {
|
||||
// Swap gagged player to end of list, then reduce array count by one.
|
||||
int swap = clients[numClients - 1];
|
||||
clients[numClients - 1] = client;
|
||||
clients[i] = swap;
|
||||
numClients -= 1;
|
||||
return Plugin_Handled;
|
||||
clients[i] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue