AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   reg default cvar (https://forums.alliedmods.net/showthread.php?t=49784)

allenwr 01-12-2007 21:48

reg default cvar
 
If I register a default cvar such as sv_alltalk 0, does that void it or will it still work normally and effect wheather alltalk is on or off?

PHP Code:

new cvar
 
public plugin_init() {
     
register_plugin("plugin","0.1","Allen")
     
cvar register_cvar("sv_alltalk","0")



teame06 01-12-2007 22:00

Re: reg default cvar
 
You don't have to do that.

Code:
cvar = get_cvar_pointer("sv_alltalk");


All times are GMT -4. The time now is 22:29.

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