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");
}
}
|