From 35adbe2c885e3d6def79ea2c0df63f754b19f79d Mon Sep 17 00:00:00 2001 From: zaCade Date: Tue, 19 Jun 2018 16:31:33 +0200 Subject: [PATCH] ChatColors: Fix forward, woops. --- custom-chatcolors/scripting/custom-chatcolors.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom-chatcolors/scripting/custom-chatcolors.sp b/custom-chatcolors/scripting/custom-chatcolors.sp index e29a05e3..724cf82c 100644 --- a/custom-chatcolors/scripting/custom-chatcolors.sp +++ b/custom-chatcolors/scripting/custom-chatcolors.sp @@ -145,7 +145,7 @@ public void OnPluginStart() //nameForward = CreateGlobalForward("CCC_OnNameColor", ET_Event, Param_Cell); //tagForward = CreateGlobalForward("CCC_OnTagApplied", ET_Event, Param_Cell); //applicationForward = CreateGlobalForward("CCC_OnColor", ET_Event, Param_Cell, Param_String, Param_Cell); - messageForward = CreateGlobalForward("CCC_OnChatMessage", ET_Ignore, Param_Cell, Param_Cell, Param_String); + messageForward = CreateGlobalForward("CCC_OnChatMessage", ET_Event, Param_Cell, Param_Cell, Param_String); preLoadedForward = CreateGlobalForward("CCC_OnUserConfigPreLoaded", ET_Event, Param_Cell); loadedForward = CreateGlobalForward("CCC_OnUserConfigLoaded", ET_Ignore, Param_Cell); configReloadedForward = CreateGlobalForward("CCC_OnConfigReloaded", ET_Ignore); @@ -2707,7 +2707,7 @@ public Action Event_PlayerSay(Handle event, const char[] name, bool dontBroadcas { if (IsClientInGame(client) && GetClientTeam(client) == team) { - if(!g_Ignored[client * (MAXPLAYERS + 1) + g_msgAuthor] || MessageForward(client, g_msgAuthor, g_msgText)) + if(!g_Ignored[client * (MAXPLAYERS + 1) + g_msgAuthor] && MessageForward(client, g_msgAuthor, g_msgText)) players[playersNum++] = client; } } @@ -2718,7 +2718,7 @@ public Action Event_PlayerSay(Handle event, const char[] name, bool dontBroadcas { if (IsClientInGame(client)) { - if(!g_Ignored[client * (MAXPLAYERS + 1) + g_msgAuthor] || MessageForward(client, g_msgAuthor, g_msgText)) + if(!g_Ignored[client * (MAXPLAYERS + 1) + g_msgAuthor] && MessageForward(client, g_msgAuthor, g_msgText)) players[playersNum++] = client; } }