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; +}