View Single Post
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 08-13-2008 , 18:34   Re: Public cvar without notifying changes to clients
Reply With Quote #3

That could work Thanks.

Edit: ok, that works, but now for some reason the cvar is only updated half the time in HLSW. So if I have a 20 second timer running, it's only updated every 40 seconds. Now I can work around this by using a 10 second timer, but it's just weird. The code is pretty basic:
Code:
SetCommandFlags("cvar", FCVAR_PLUGIN|FCVAR_SPONLY); SetConVarString(g_hCvar, "string"); SetCommandFlags("cvar", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_NOTIFY);
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.

Last edited by DJ Tsunami; 08-13-2008 at 18:50.
DJ Tsunami is offline