native create_cvar(const name, const string, flags = FCVAR_NONE, const description = "", bool:has_min = false, Float:min_val = 0.0, bool:has_max = false, Float:max_val = 0.0);
Default cvar value
Optional bitsum of flags specifying cvar behavior
Optional description of the cvar
Optional boolean that specifies if the cvar has a minimum value
Minimum floating point value
Optional boolean that specifies if the cvar has a maximum value
Maximum floating point value
Creates a new cvar for the engine.
This has the same effect as register_cvar() but provides more options.
For a list of possible cvar flags see FCVAR_* constants above.
If an already existing cvar is registered it will not be duplicated. The default value is only set when the cvar is registered for the very first time since the server was started. Cvar bounds are overwritten by the create_cvar() call just as if they were re-set using set_pcvar_bounds().
The returned cvar pointer should be used with the get_pcvar_* and set_pcvar_* set of functions.
Unique cvar pointer
If invalid bounds are provided (min_val > max_val or vice versa), an error will be thrown.
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.