mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
Fixed chat titles compatibility with latest Chat-Processor.
This commit is contained in:
parent
045fbb03fe
commit
6808b833d7
@ -61,7 +61,7 @@ forward Action CP_OnChatMessage(int& author, ArrayList recipients, char[] flagst
|
|||||||
forward void CP_OnChatMessagePost(int author, ArrayList recipients, const char[] flagstring, const char[] formatstring, const char[] name, const char[] message, bool processcolors, bool removecolors);
|
forward void CP_OnChatMessagePost(int author, ArrayList recipients, const char[] flagstring, const char[] formatstring, const char[] name, const char[] message, bool processcolors, bool removecolors);
|
||||||
|
|
||||||
#if !defined REQUIRE_PLUGIN
|
#if !defined REQUIRE_PLUGIN
|
||||||
public __pl_chat_processor_SetNTVOptional()
|
public void __pl_chat_processor_SetNTVOptional()
|
||||||
{
|
{
|
||||||
MarkNativeAsOptional("ChatProcessor_GetFlagFormatString");
|
MarkNativeAsOptional("ChatProcessor_GetFlagFormatString");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -736,19 +736,6 @@ public Action CP_OnChatMessage(int &author, ArrayList recipients, char[] flagstr
|
|||||||
PrintToServer("%N %s", author, flagstring);
|
PrintToServer("%N %s", author, flagstring);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool allchat = (StrContains(flagstring, "_All") != -1);
|
|
||||||
int team = GetClientTeam(author);
|
|
||||||
|
|
||||||
recipients.Clear();
|
|
||||||
|
|
||||||
for(int i = 1; i <= MaxClients; i++)
|
|
||||||
{
|
|
||||||
if(i == author || (IsClientInGame(i) && (allchat || GetClientTeam(i) == team)))
|
|
||||||
{
|
|
||||||
recipients.Push(i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
removecolors = true;
|
removecolors = true;
|
||||||
processcolors = false;
|
processcolors = false;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user