Raised This Month: $ Target: $400
 0% 

register cvar but no change


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
n0rt
Junior Member
Join Date: Jul 2008
Old 08-02-2010 , 13:49   register cvar but no change
Reply With Quote #1

hi all
well i have 1 question

i want to register(maybe i even dont need to do that) a cvar,specify value to it and dont allow to change that(only in sma), and i dont want that to appear somewhere in game,help please?

for example

i have autohealing plugin with cvar autoheal_hp and value 55

new cvar_hp

cvar_hp = register_cvar("autoheal_hp", "55");

how can i hold that to 55 and make it never appear in Plugin Cvars Menu or smth like that
FCVAR_PROTECTED flag
but its not correct im sure

Last edited by n0rt; 08-02-2010 at 13:53.
n0rt is offline
 



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 00:12.


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