View Single Post
Antithasys
Moderator
Join Date: Apr 2008
Old 11-27-2008 , 18:03   Re: L4D Director Enforcer
Reply With Quote #5

Quote:
Originally Posted by DDR Khat View Post
Sorry for asking this but, public cvar? just a variable to catch this plugin by itself I assume, right?
http://forums.alliedmods.net/showthread.php?t=57142

Quote:
If you fill in a cvar, choose a descriptive cvar name. If your plugin is called "Nifty Tools," a good cvar name would be "niftytools_version." Bad names might be "nt_version," "nt," or "version_n." Check on game-monitor that the cvar is not in use for Source. Make sure FCVAR_NOTIFY is applied to the cvar flags.
For you it could be:
PHP Code:
CreateConVar("hzombies_version"PLUGIN_VERSION"No Human Zombies"FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY|FCVAR_DONTRECORD); 

Last edited by Antithasys; 11-27-2008 at 18:06. Reason: added code
Antithasys is offline