AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HLstatsX:CE (https://forums.alliedmods.net/forumdisplay.php?f=156)
-   -   [CSGO] Disable HLstatsX logging during warmup (https://forums.alliedmods.net/showthread.php?t=291540)

canti 12-14-2016 02:12

[CSGO] Disable HLstatsX logging during warmup
 
I'm looking for a way to disable stats during warmup so players can't lose tons of points when being killed in spawn and what not.

I've searched through a bunch of threads across numerous sites and none of them to have what I'm looking for. Essentially all I want is a plugin or something that will execute a .cfg file before/after warmup that deletes and re-adds the log address. This plugin seems to be what most people recommend, but it's always been extremely buggy when I've tried to use it (pre/post-warmup configs not working, not restoring non-"custom" weapons after warmup ends, etc.) and aside from that it seems redundant to throw another warmup plugin on my servers when the vanilla system works perfectly fine.

Obyboby 04-14-2017 09:38

Re: [CSGO] Disable HLstatsX logging during warmup
 
+1, I'm interested.

BassPower 04-15-2017 14:30

Re: [CSGO] Disable HLstatsX logging during warmup
 
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");
}
}

waylander3 04-26-2017 18:45

Re: [CSGO] Disable HLstatsX logging during warmup
 
online compile:

Your plugin failed to compile! Read the errors below:
SourcePawn Compiler 1.7.1
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2014 AlliedModders LLC

/groups/sourcemod/upload_tmp/textJjjsVx.sp(1) : error 021: symbol already defined: "HookEvent"
/groups/sourcemod/upload_tmp/textJjjsVx.sp(5) : error 017: undefined symbol "GameRules_GetProp"

2 Errors.

sm 1.8 compile:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// 1hlstatkill.sp
//
// D:\update plugins\csgo\addons\sourcemod\scripting\1hlst atkill.sp(1) : error 0
21: symbol already defined: "HookEvent"
//
// 1 Error.
//
// Compilation Time: 0,44 sec
// ----------------------------------------

Press enter to exit ...

BassPower 04-28-2017 13:36

Re: [CSGO] Disable HLstatsX logging during warmup
 
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");
}
}


All times are GMT -4. The time now is 02:10.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.