Raised This Month: $12 Target: $400
 3% 

[CSGO] Disable HLstatsX logging during warmup


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
canti
New Member
Join Date: May 2016
Old 12-14-2016 , 02:12   [CSGO] Disable HLstatsX logging during warmup
Reply With Quote #1

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.
canti is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 04-14-2017 , 09:38   Re: [CSGO] Disable HLstatsX logging during warmup
Reply With Quote #2

+1, I'm interested.
__________________
Obyboby is offline
BassPower
Member
Join Date: Mar 2011
Location: Lithuania
Old 04-15-2017 , 14:30   Re: [CSGO] Disable HLstatsX logging during warmup
Reply With Quote #3

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");
}
}
BassPower is offline
waylander3
Senior Member
Join Date: Sep 2015
Location: Russia, Norilsk
Old 04-26-2017 , 18:45   Re: [CSGO] Disable HLstatsX logging during warmup
Reply With Quote #4

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 ...

Last edited by waylander3; 04-26-2017 at 18:50.
waylander3 is offline
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
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:03.


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