Instead of assigning FCVAR_PROTECTED to cvars after startup, register cvars with said flag

This commit is contained in:
xPaw
2014-07-29 00:33:08 +03:00
parent 919af60ca9
commit 0e0d7ec9d5
7 changed files with 27 additions and 39 deletions

View File

@ -158,7 +158,7 @@ stock show_activity( id, const name[], const fmt[], any:... )
// if still not found, then register the cvar as a dummy
if (__amx_show_activity == 0)
{
__amx_show_activity = register_cvar("amx_show_activity", "2");
__amx_show_activity = register_cvar("amx_show_activity", "2", FCVAR_PROTECTED);
}
}
@ -256,7 +256,7 @@ stock show_activity_id(idtarget, idadmin, const name[], const fmt[], any:...)
// if still not found, then register the cvar as a dummy
if (__amx_show_activity == 0)
{
__amx_show_activity = register_cvar("amx_show_activity", "2");
__amx_show_activity = register_cvar("amx_show_activity", "2", FCVAR_PROTECTED);
}
}
@ -335,7 +335,7 @@ stock show_activity_key(const KeyWithoutName[], const KeyWithName[], const ___Ad
// if still not found, then register the cvar as a dummy
if (__amx_show_activity == 0)
{
__amx_show_activity = register_cvar("amx_show_activity", "2");
__amx_show_activity = register_cvar("amx_show_activity", "2", FCVAR_PROTECTED);
}
}