mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 12:53:21 +00:00
Add some minor checks
This commit is contained in:
parent
d5a4f2224f
commit
3f5959ec71
8 changed files with 138 additions and 59 deletions
|
@ -81,10 +81,10 @@ public Action Cmd_VGag(int client, int args) {
|
|||
int playerIndex = gaggedPlayers[client].FindValue(target_list[i]);
|
||||
if(playerIndex > -1) {
|
||||
gaggedPlayers[client].Erase(playerIndex);
|
||||
ReplyToCommand(client, "Locally vocalize ungagged %s", target_name[i]);
|
||||
ReplyToCommand(client, "Locally vocalize ungagged %s", target_name);
|
||||
}else{
|
||||
gaggedPlayers[client].Push(target_list[i]);
|
||||
ReplyToCommand(client, "Locally vocalize gagged %s", target_name[i]);
|
||||
ReplyToCommand(client, "Locally vocalize gagged %s", target_name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue