Skip to content

Commit

Permalink
Revert "Do not allow admins to change cvars with FCVAR_SPONLY flag wh…
Browse files Browse the repository at this point in the history
…en not in singleplayer via amx_cvar"

adbc3e0

Behavior change. For now reverting it to give time and decide how it should be handled properly.
  • Loading branch information
Arkshine committed Jun 24, 2020
1 parent ed1ab00 commit b261180
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions plugins/admincmd.sma
Expand Up @@ -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, ";")
Expand Down

0 comments on commit b261180

Please sign in to comment.