From 8ad47850775b8013a0595b315d38cd80a03b8070 Mon Sep 17 00:00:00 2001 From: d3m37r4 Date: Fri, 8 Dec 2023 21:56:50 +0700 Subject: [PATCH] Added change ReGameDLL cvar 'mp_roundtime'. --- cstrike/addons/amxmodx/scripting/regg/config.inl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cstrike/addons/amxmodx/scripting/regg/config.inl b/cstrike/addons/amxmodx/scripting/regg/config.inl index 18284b2..cf913c3 100644 --- a/cstrike/addons/amxmodx/scripting/regg/config.inl +++ b/cstrike/addons/amxmodx/scripting/regg/config.inl @@ -23,6 +23,7 @@ enum config_section_s { }; enum _:game_cvars_s { + Float:GCRoundTime, GCRoundInfinite[32], Float:GCForcerespawn, GCRefillBpammoWeapons, @@ -106,6 +107,10 @@ registerCvars() { changeGameCvars() { new pcvar; + pcvar = get_cvar_pointer("mp_roundtime"); + GameCvars[GCRoundTime] = get_pcvar_float(pcvar); + set_pcvar_float(pcvar, 0.0); + pcvar = get_cvar_pointer("mp_round_infinite"); get_pcvar_string(pcvar, GameCvars[GCRoundInfinite], charsmax(GameCvars[GCRoundInfinite])); set_pcvar_num(pcvar, 1);