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:
parent
ed1ab00faf
commit
b26118006a
|
@ -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, ";")
|
||||
|
|
Loading…
Reference in New Issue
Block a user