AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_cvar_flags (https://forums.alliedmods.net/showthread.php?t=225635)

kiki33hun 09-07-2013 06:37

set_cvar_flags
 
Hello.

set_cvar_flags allowed protection default cvars, or another plugins cvars.

Example:

set_cvar_flags("sv_alltalk", FCVAR_PROTECTED)

or

set_cvar_flags("allchat_version", FCVAR_PROTECTED)

If yes, how to usage? In plugin_precache?

ConnorMcLeod 09-07-2013 09:52

Re: set_cvar_flags
 
Any time, but anyway you can set flag in register_cvar function.

See this plugin : http://forums.alliedmods.net/showthr...15#post1148115
Don't pay attention to plugin name, you can use it as following example :

sv_alltalk 32

kiki33hun 09-07-2013 10:25

Re: set_cvar_flags
 
Thanks.


All times are GMT -4. The time now is 19:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.