register cvar but no change
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 |
Re: register cvar but no change
Quote:
const var = 55 //cant be changed. new var = 55 //can be changed |
Re: register cvar but no change
yes,im searching something like this
but i dont know what format is it use :] thanks! ill try |
Re: register cvar but no change
ok ok i think iv got it
|
Re: register cvar but no change
can you make 1-2 examples,1 for text and 1 for value please
i think im doing smth wrong :/ |
Re: register cvar but no change
Above covers integers, for arrays and strings.
new const var[ 555 ] new var[ 555 ] |
Re: register cvar but no change
hmm i cant get it
but tries will bring me to success... maybe |
Re: register cvar but no change
What are you trying to do?
|
Re: register cvar but no change
Quote:
|
| All times are GMT -4. The time now is 00:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.