From e5e9bac1c00356a5a716a9439384fb18344a6047 Mon Sep 17 00:00:00 2001 From: Accelerator Date: Wed, 15 May 2024 05:19:40 +0300 Subject: [PATCH] Update l4dtoolz_mm.cpp --- l4dtoolz_mm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l4dtoolz_mm.cpp b/l4dtoolz_mm.cpp index dc9e96d..b1fa5ee 100644 --- a/l4dtoolz_mm.cpp +++ b/l4dtoolz_mm.cpp @@ -54,7 +54,7 @@ void l4dtoolz::OnChangeUnreserved ( IConVar *var, const char *pOldValue, float f } if(new_value != old_value) { if(new_value == 1) { - engine->ServerCommand("sv_allow_lobby_connect_only 0\n"); + g_pCVar->FindVar("sv_allow_lobby_connect_only")->SetValue(0); } } }