From df14ed21658e3e581fa116aaad6740eecc850189 Mon Sep 17 00:00:00 2001 From: Oldcustard <147gusto@gmail.com> Date: Mon, 6 Mar 2023 23:16:29 +1100 Subject: [PATCH] changed timer frequency and clean up --- scripting/config_loader.sp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripting/config_loader.sp b/scripting/config_loader.sp index c2a9fb5..a7ecf4f 100644 --- a/scripting/config_loader.sp +++ b/scripting/config_loader.sp @@ -51,7 +51,7 @@ public void OnMapStart() * @note Precache your models, sounds, etc. here! * Not in OnConfigsExecuted! Doing so leads to issues. */ - g_reminder_timer = CreateTimer(15.0, PostReminder, 0, TIMER_REPEAT); + g_reminder_timer = CreateTimer(30.0, PostReminder, 0, TIMER_REPEAT); char config_name[64]; LoadConfig(config_name, sizeof(config_name)); @@ -98,10 +98,12 @@ Action BlockStart(Event event, const char[] name, bool dontBroadcast) if (g_bConfigLoaded) { KillTimer(g_reminder_timer); + PrintToServer("[AUTOCONFIG] Match started, going silent."); return Plugin_Continue; } ServerCommand("mp_tournament_restart"); CPrintToChatAll("{yellow}Bad rollout! {default}(Did you forget to exec?)"); + PrintToServer("[AUTOCONFIG] Match start blocked due to no config"); return Plugin_Handled; }