From 5eea3e5b42e5f5663686088d141ea4df75a5f111 Mon Sep 17 00:00:00 2001 From: Vincent Herbet Date: Wed, 24 Jun 2020 22:49:19 +0200 Subject: [PATCH] Revert "Do not allow admins to change cvars with FCVAR_SPONLY flag when not in singleplayer via amx_cvar" https://github.com/alliedmodders/amxmodx/pull/822/commits/adbc3e0c53f2e46179da32461afdf133556e9536 Behavior change. For now reverting it to give time and decide how it should be handled properly. --- plugins/admincmd.sma | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/admincmd.sma b/plugins/admincmd.sma index 3d8e2f68..6df9d2a3 100755 --- a/plugins/admincmd.sma +++ b/plugins/admincmd.sma @@ -787,13 +787,7 @@ public cmdCvar(id, level, cid) console_print(id, "[AMXX] %L", id, "CVAR_IS", arg, arg2) return PLUGIN_HANDLED } - - if ((get_pcvar_flags(pointer) & FCVAR_SPONLY) && MaxClients != 1) - { - console_print(id, "[AMXX] %L", id, "CVAR_NO_ACC") - return PLUGIN_HANDLED - } - + if (equali(arg, "servercfgfile") || equali(arg, "lservercfgfile") || equali(arg, "mapchangecfgfile")) { new pos = contain(arg2, ";")