How to register a CVAR?
I want to register a CVAR that it'll call a function at some point of the code according to what the cvar is (for example if amx_cvar kill_admin will be on '1') when its time for a function in the order of a code i made, the function that kills all admins will be called, if its on '0' it wont be called when it gets to the function.
NOTE: I want it to be permanent, like all those CVARS that never change even when u do map change. |
Re: How to register a CVAR?
Cvars are settings and don't cause action.
This post is very informative. (ignore all replies in the thread) |
Re: How to register a CVAR?
You can register a server command that *acts* like a cvar, requiring input values and stuff.
|
Re: How to register a CVAR?
|
Re: How to register a CVAR?
But, lets say I have a plugin, and it goes through some functions, in order ofcourse. what I want is to register a cvar that can be edited ingame, that if you put 0 or 1, when the plugin runs, it'll skip or do the function according to what the cvar value is. and I want that CVAR to not change after map change, how do I do that?
|
Re: How to register a CVAR?
Quote:
|
| All times are GMT -4. The time now is 01:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.