This commit is contained in:
Jackzie 2022-01-26 11:06:50 -06:00
parent 3c88c010ad
commit 3a26dffd7a
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
10 changed files with 214 additions and 141 deletions

View file

@ -67,17 +67,15 @@ public Action Cmd_VGag(int client, int args) {
client,
target_list,
MAXPLAYERS,
COMMAND_FILTER_ALIVE, /* Only allow alive players */
COMMAND_FILTER_ALIVE,
target_name,
sizeof(target_name),
tn_is_ml)) <= 0)
{
/* This function replies to the admin with a failure message */
ReplyToTargetError(client, target_count);
return Plugin_Handled;
}
for (int i = 0; i < target_count; i++)
{
for (int i = 0; i < target_count; i++) {
int playerIndex = gaggedPlayers[client].FindValue(target_list[i]);
if(playerIndex > -1) {
gaggedPlayers[client].Erase(playerIndex);