Revert "Do not allow admins to change cvars with FCVAR_SPONLY flag when not in singleplayer via amx_cvar"

adbc3e0c53

Behavior change. For now reverting it to give time and decide how it should be handled properly.
This commit is contained in:
Vincent Herbet 2020-06-24 22:49:19 +02:00 committed by Arkshine
parent 1bfec70029
commit 5eea3e5b42
No known key found for this signature in database
GPG Key ID: CF94ED4EEAB64724

View File

@ -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, ";")