Raised This Month: $ Target: $400
 0% 

register cvar but no change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-02-2010 , 13:53   Re: register cvar but no change
Reply With Quote #1

Quote:
Originally Posted by n0rt View Post
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
Why not use a regular variable?

const var = 55 //cant be changed.
new var = 55 //can be changed
__________________

Last edited by Bugsy; 08-02-2010 at 13:55.
Bugsy is offline
n0rt
Junior Member
Join Date: Jul 2008
Old 08-02-2010 , 14:13   Re: register cvar but no change
Reply With Quote #2

ok ok i think iv got it

Last edited by n0rt; 08-02-2010 at 14:16.
n0rt 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 00:12.


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