From 633330bcd82e7899e14e1debef6ca6ec91d61def Mon Sep 17 00:00:00 2001 From: furo Date: Sat, 27 Jan 2024 18:18:32 +0100 Subject: [PATCH] Add a error message for when testing commands aren't allowed --- src/engine/shared/console.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp index e20e2dae2..ba2ddc0bc 100644 --- a/src/engine/shared/console.cpp +++ b/src/engine/shared/console.cpp @@ -502,7 +502,10 @@ void CConsole::ExecuteLineStroked(int Stroke, const char *pStr, int ClientID, bo else { if(pCommand->m_Flags & CMDFLAG_TEST && !g_Config.m_SvTestingCommands) + { + Print(OUTPUT_LEVEL_STANDARD, "console", "Test commands aren't allowed, enable them with 'sv_test_cmds 1' in your initial config."); return; + } if(m_pfnTeeHistorianCommandCallback && !(pCommand->m_Flags & CFGFLAG_NONTEEHISTORIC)) {