From 1c0884386cf97d61e0699cffb072fbabdfc59cbf Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 10 Jul 2026 22:49:39 +0200 Subject: [PATCH] fix ExtendHumiliation.sp --- ExtendHumiliation.sp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ExtendHumiliation.sp b/ExtendHumiliation.sp index 8b7859c..a548d66 100644 --- a/ExtendHumiliation.sp +++ b/ExtendHumiliation.sp @@ -8,12 +8,12 @@ public Plugin:myinfo = } new Handle:gBonusRoundTime = INVALID_HANDLE; -new Int:bonustime = 0; +int bonustime = 0; ConVar g_cvTime; -public OnPluginStart() { +public void OnPluginStart() { CreateTimer(1.0, UpdateCvar, _, TIMER_REPEAT); gBonusRoundTime = FindConVar("mp_bonusroundtime"); g_cvTime = CreateConVar("bonus_time", "15", "The length of bonus round time"); @@ -29,12 +29,14 @@ public OnPluginStart() { //somehow tell sourcemod the plugin has crashed. } } -public Action UpdateCvar(Handle timer) -{ + +public Action UpdateCvar(Handle timer) { bonustime = g_cvTime.IntValue; if (gBonusRoundTime != INVALID_HANDLE) { SetConVarBounds(gBonusRoundTime, ConVarBound_Upper, true, g_cvTime.FloatValue); ServerCommand("mp_bonusroundtime %d", bonustime); } -} \ No newline at end of file + + return Plugin_Continue; +}