mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
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:
parent
54252f2ad6
commit
223efc4843
@ -65,6 +65,6 @@ Including a records system, map zones (start/end marks etc), bonuses, HUD with u
|
|||||||
7. Restart your server.
|
7. Restart your server.
|
||||||
|
|
||||||
# Required plugins:
|
# Required plugins:
|
||||||
`shavit-core` - compeletely required.
|
`shavit-core` - compeletely required.
|
||||||
`shavit-zones` - compeletely required.
|
`shavit-zones` - compeletely required.
|
||||||
`shavit-wr` - required for `shavit-stats`, `shavit-replay` and `shavit-sounds`.
|
`shavit-wr` - required for `shavit-stats`, `shavit-replay` and `shavit-sounds`.
|
||||||
|
|||||||
@ -42,6 +42,15 @@ char gS_CustomName[MAXPLAYERS+1][128];
|
|||||||
bool gB_MessageEnabled[MAXPLAYERS+1];
|
bool gB_MessageEnabled[MAXPLAYERS+1];
|
||||||
char gS_CustomMessage[MAXPLAYERS+1][16];
|
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()
|
public void OnPluginStart()
|
||||||
{
|
{
|
||||||
gEV_Type = GetEngineVersion();
|
gEV_Type = GetEngineVersion();
|
||||||
|
|||||||
@ -1054,7 +1054,7 @@ public int Native_PrintToChat(Handle handler, int numParams)
|
|||||||
|
|
||||||
if(hSayText2 != null)
|
if(hSayText2 != null)
|
||||||
{
|
{
|
||||||
BfWriteByte(hSayText2, client);
|
BfWriteByte(hSayText2, 0);
|
||||||
BfWriteByte(hSayText2, !gB_StopChatSound);
|
BfWriteByte(hSayText2, !gB_StopChatSound);
|
||||||
BfWriteString(hSayText2, buffer);
|
BfWriteString(hSayText2, buffer);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user