Invisible CVAR.
Good day.
The question is: Is there a way to have something like invisible (outside the plugin) cvar? I mean, that even admin with ADMIN_CVAR access could not have the access to this cvar. But cvar, like others, must store his value via mapchange. In simple words: We must have a cvar, but its value can only be changed within the plugin. |
Re: Invisible CVAR.
Just make a CVAR and cache it in plugin_init()
Code:
|
Re: Invisible CVAR.
But i can change the myCvar via amx_cvar. And after mapchange myCvarValue will be changed too.
|
Re: Invisible CVAR.
Let a variable act like a cvar...
|
Re: Invisible CVAR.
Quote:
Variable will be redefined each mapchange. But she must store its value, and plugin, by itself, can change this value. new var1=1 ...//deep in plugin var1=0 ...//after mapchange new var1=1 //again! Var1 is now 1, but must be 0. |
Re: Invisible CVAR.
click here
Code:
FCVAR_SPONLY This cvar cannot be changed by clients connected to a multiplayer server. |
Re: Invisible CVAR.
Quote:
Just tried FCVAR_SPONLY. This flag has no effect. I still can change cvar via amx_cvar. |
Re: Invisible CVAR.
Quote:
|
Re: Invisible CVAR.
Quote:
|
| All times are GMT -4. The time now is 22:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.