Raised This Month: $ Target: $400
 0% 

set_cvar_flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-07-2013 , 06:37   set_cvar_flags
Reply With Quote #1

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?
__________________
kiki33hun is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-07-2013 , 09:52   Re: set_cvar_flags
Reply With Quote #2

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
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-07-2013 , 10:25   Re: set_cvar_flags
Reply With Quote #3

Thanks.
__________________

Last edited by kiki33hun; 09-07-2013 at 10:25.
kiki33hun is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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