|
@@ -9,10 +9,11 @@
|
|
#include <sourcemod>
|
|
#include <sourcemod>
|
|
|
|
|
|
#include <sdkhooks>
|
|
#include <sdkhooks>
|
|
|
|
+#include <sdktools_voice>
|
|
|
|
|
|
#pragma newdecls required
|
|
#pragma newdecls required
|
|
|
|
|
|
-#define PLUGIN_VERSION "0.1.1"
|
|
|
|
|
|
+#define PLUGIN_VERSION "0.1.2"
|
|
public Plugin myinfo = {
|
|
public Plugin myinfo = {
|
|
name = "[CSRD] Simple Chat Processor",
|
|
name = "[CSRD] Simple Chat Processor",
|
|
author = "nosoop (based off of Simple Plugins' implementation)",
|
|
author = "nosoop (based off of Simple Plugins' implementation)",
|
|
@@ -177,7 +178,13 @@ public void OnClientThinkPost(int author) {
|
|
// convert ArrayList to client array
|
|
// convert ArrayList to client array
|
|
int clients[MAXPLAYERS + 1], nClients;
|
|
int clients[MAXPLAYERS + 1], nClients;
|
|
for (int i = 0; i < clientList.Length; i++) {
|
|
for (int i = 0; i < clientList.Length; i++) {
|
|
- clients[nClients++] = clientList.Get(i);
|
|
|
|
|
|
+ int recipient = clientList.Get(i);
|
|
|
|
+
|
|
|
|
+ // display to author and players that did not mute the author
|
|
|
|
+ if (recipient == author
|
|
|
|
+ || !IsClientMuted(recipient, author)) {
|
|
|
|
+ clients[nClients++] = recipient;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
SayText(author, clients, nClients, localizationToken, name, message);
|
|
SayText(author, clients, nClients, localizationToken, name, message);
|