Fixed incompatibilty issue with Chat-Processor.

CS:S only - the issue doesn't exist in CS:GO!
Also added myinfo for shavit-chat.
This commit is contained in:
shavitush 2017-08-01 20:51:50 +03:00
parent 54252f2ad6
commit 223efc4843
3 changed files with 12 additions and 3 deletions

View File

@ -65,6 +65,6 @@ Including a records system, map zones (start/end marks etc), bonuses, HUD with u
7. Restart your server.
# Required plugins:
`shavit-core` - compeletely required.
`shavit-zones` - compeletely required.
`shavit-core` - compeletely required.
`shavit-zones` - compeletely required.
`shavit-wr` - required for `shavit-stats`, `shavit-replay` and `shavit-sounds`.

View File

@ -42,6 +42,15 @@ char gS_CustomName[MAXPLAYERS+1][128];
bool gB_MessageEnabled[MAXPLAYERS+1];
char gS_CustomMessage[MAXPLAYERS+1][16];
public Plugin myinfo =
{
name = "[shavit] Chat",
author = "shavit",
description = "Custom chat privileges (custom name and message colors).",
version = SHAVIT_VERSION,
url = "https://github.com/shavitush/bhoptimer"
}
public void OnPluginStart()
{
gEV_Type = GetEngineVersion();

View File

@ -1054,7 +1054,7 @@ public int Native_PrintToChat(Handle handler, int numParams)
if(hSayText2 != null)
{
BfWriteByte(hSayText2, client);
BfWriteByte(hSayText2, 0);
BfWriteByte(hSayText2, !gB_StopChatSound);
BfWriteString(hSayText2, buffer);
}