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
|
@ -788,12 +788,6 @@ public cmdCvar(id, level, cid)
|
||||||
return PLUGIN_HANDLED
|
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"))
|
if (equali(arg, "servercfgfile") || equali(arg, "lservercfgfile") || equali(arg, "mapchangecfgfile"))
|
||||||
{
|
{
|
||||||
new pos = contain(arg2, ";")
|
new pos = contain(arg2, ";")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user