ChatColors: Fix forward, woops.
This commit is contained in:
parent
8629ea2494
commit
35adbe2c88
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user