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 GitHub
parent ed1ab00faf
commit b26118006a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -788,12 +788,6 @@ public cmdCvar(id, level, cid)
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, ";")