View Single Post
BassPower
Member
Join Date: Mar 2011
Location: Lithuania
Old 04-28-2017 , 13:36   Re: [CSGO] Disable HLstatsX logging during warmup
Reply With Quote #5

here is example for your plugin to disable hlxce logs on warmup not online compile...

here is small script just check warmup and disable hlx
Quote:
#include <sourcemod>
#include <sdkhooks>
#include <sdktools>

public void OnPluginStart()
{
HookEvent("round_start", Event_RoundStartMode, EventHookMode_PostNoCopy);
}

public void Event_RoundStartMode(Event event, const char[] name, bool dontBroadcast)
{
if(GameRules_GetProp("m_bWarmupPeriod") == 1)
{
ServerCommand("log off");
} else {
ServerCommand("log on");
}
}

Last edited by BassPower; 10-06-2017 at 05:11. Reason: add script
BassPower is offline