Raised This Month: $51 Target: $400
 12% 

Servers hiding cvars


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
deathcurse
Senior Member
Join Date: Jun 2006
Location: UK
Old 10-26-2010 , 06:06   Servers hiding cvars
Reply With Quote #1

I've seen a few servers hiding the server cvars from HLSW, Game Monitor etc.

I'm just curious how they have done this?
__________________
Clan of Doom: www.clanofdoom.co.uk
deathcurse is offline
Groger
Veteran Member
Join Date: Oct 2009
Location: Belgium
Old 10-26-2010 , 07:23   Re: Servers hiding cvars
Reply With Quote #2

Saigns has this to if i'm not mistaking
Groger is offline
HSFighter
Veteran Member
Join Date: Aug 2007
Location: Flensburg - Germany
Old 10-26-2010 , 08:16   Re: Servers hiding cvars
Reply With Quote #3

Quote:
Originally Posted by FeuerSturm View Post
Game-Monitor reads all public convars with the "FCVAR_NOTIFY" flag,
you'll have to remove that flag from each convar that you want to hide.

Example for hiding "mp_timelimit":
PHP Code:
public OnPluginStart()
{
 new 
mpTimelimit FindConVar("mp_timelimit")
 new 
flags GetConVarFlags(mpTimelimit
 
flags &= ~FCVAR_NOTIFY
 SetConVarFlags
(mpTimelimitflags)

__________________



Sorry for my very bad english
Greetings HSFighter
HSFighter is offline
Send a message via ICQ to HSFighter
Ginxeng
Senior Member
Join Date: Nov 2009
Location: Timber Doodle
Old 10-27-2010 , 05:46   Re: Servers hiding cvars
Reply With Quote #4

So how do I add more then one cvar to remove?
__________________
Ginxeng is offline
Send a message via AIM to Ginxeng Send a message via MSN to Ginxeng Send a message via Skype™ to Ginxeng
deathcurse
Senior Member
Join Date: Jun 2006
Location: UK
Old 11-01-2010 , 08:43   Re: Servers hiding cvars
Reply With Quote #5

Isn't there a simple way to hide all cvars apart from the standard SRCDS ones?
__________________
Clan of Doom: www.clanofdoom.co.uk
deathcurse is offline
psychonic

BAFFLED
Join Date: May 2008
Old 11-01-2010 , 08:50   Re: Servers hiding cvars
Reply With Quote #6

Quote:
Originally Posted by deathcurse View Post
Isn't there a simple way to hide all cvars apart from the standard SRCDS ones?
Why bother?

If you're trying to hide what plugins you're running, remember that the client can still just type 'sm plugins list' to get a list of them after joining.
psychonic is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 11-01-2010 , 11:30   Re: Servers hiding cvars
Reply With Quote #7

Quote:
Originally Posted by deathcurse View Post
I've seen a few servers hiding the server cvars from HLSW, Game Monitor etc.

I'm just curious how they have done this?
Actually, they probably aren't "hiding" the cvars. There is a bug in HLSW and/or a2s_rules queries that prevents any cvars from showing up in HLSW, especially when there are more than a certain number of cvars with the FCVAR_NOTIFY flag.

For that reason, I usually make sure that only the version cvar has the FCVAR_NOTIFY flag on plugins that I write and/or use.

http://forums.alliedmods.net/showthr...highlight=hlsw

Last edited by naris; 11-01-2010 at 11:35.
naris is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:59.


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