AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Creating Global cvars? (https://forums.alliedmods.net/showthread.php?t=62104)

Sputnik53 10-18-2007 20:43

Creating Global cvars?
 
I've seen plugins create global cvars or something like that. Those cvars were able to see which servers was running that plugin (in game-monitor). How is it possible to create that kind of cvars?

_Master_ 10-19-2007 03:26

Re: Creating Global cvars?
 
Register the cvar with FCVAR_SERVER flag. Add FCVAR_SPONLY to prevent cvar change ( via console ). Note that SPONLY will not prevent cvar change via 3-rd party plugin.


All times are GMT -4. The time now is 01:13.

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