Raised This Month: $ Target: $400
 0% 

CVAR notify remover


Post New Thread Reply   
 
Thread Tools Display Modes
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 10-14-2012 , 13:36   Re: CVAR notify remover
Reply With Quote #11

Quote:
Originally Posted by Franc1sco View Post
Ok so nothing.

I made a plugin for that, but you say that is already done.. the code does not look like these but this do that I said


published (that is not good but anyway)


Installation:

Put in sourcemod/plugins and restart your server

Look in HLSW and magic, the convars disappeared
This will cause many problems. For instance, server tags will not be visible in the server browser.

Also, I like how your plugin removes the notify flag from all cvars except its own version cvar.

Removing the notify flag is a bad idea. Prevent the server_cvar event from broadcasting instead like the other plugins do.
__________________
Dr. McKay is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 10-14-2012 , 13:46   Re: CVAR notify remover
Reply With Quote #12

Hide convars now respect same cvars and remove only default cvars

http://forums.alliedmods.net/showpos...36&postcount=8
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 10-14-2012 at 13:48.
Franc1sco is offline
Send a message via MSN to Franc1sco
eric0279
AlliedModders Donor
Join Date: May 2007
Old 08-29-2014 , 09:09   Re: CVAR notify remover
Reply With Quote #13

Quote:
Originally Posted by Franc1sco View Post
Ok so nothing.

I made a plugin for that, but you say that is already done.. the code does not look like these but this do that I said


published (that is not good but anyway)


Installation:

Put in sourcemod/plugins and restart your server

Look in HLSW and magic, the convars disappeared


changelog

v1.1
-Now respect some cvars

Hello,

i have tested but doesn't work...

PHP Code:
#pragma semicolon 1
#include <sourcemod>



public Plugin:myinfo =
{
    
name "SM Totally Hide convars",
    
author "Franc1sco Steam: franug",
    
description "For hide all default convars",
    
version "1.1",
    
url "www.servers-cfg.foroactivo.com"
};

public 
OnPluginStart()
{
    new 
String:sConVarName[256]; 
    new 
bool:bIsCommand;
    new 
iFlags;
    
    new 
Handle:hSearchHandle FindFirstConCommand(sConVarNamesizeof(sConVarName), bIsCommandiFlags);
    new 
Handle:laconvar INVALID_HANDLE;
    if (!
bIsCommand && (StrContains(sConVarName"sm_") == -1) && (StrContains(sConVarName"_version") == -1) && (StrContains(sConVarName"l4d_") == -1) && (StrContains(sConVarName"l4d2_") == -1))
    {
        if(
iFlags FCVAR_NOTIFY)
        {
             
laconvar FindConVar(sConVarName);
             new 
flags GetConVarFlags(laconvar);
             
flags &= ~FCVAR_NOTIFY;
             
SetConVarFlags(laconvarflags);
        }    
    }
    
    while (
FindNextConCommand(hSearchHandlesConVarNamesizeof(sConVarName), bool:bIsCommandiFlags))
    {
        if (
bIsCommand || (StrContains(sConVarName"sm_"false) != -1) || (StrContains(sConVarName"_version"false) != -1) || (StrContains(sConVarName"l4d_"false) != -1) || (StrContains(sConVarName"l4d2_"false) != -1))
        {
            continue;
        }

        if(
iFlags FCVAR_NOTIFY)
        {
             
laconvar FindConVar(sConVarName);
             new 
flags GetConVarFlags(laconvar); 
             
flags &= ~FCVAR_NOTIFY;
             
SetConVarFlags(laconvarflags);
        }
    }


    
CreateConVar("sm_hideconvars_version""v1.1""plugin"FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);

eric0279 is offline
AngelOlleta14
Junior Member
Join Date: Oct 2014
Old 11-09-2014 , 19:32   Re: CVAR notify remover
Reply With Quote #14

Spanish:
Como serķa para remover los nombres de los plugins, ej : sourcemod, metamod

English:
As it would be to remove the names of the plugins, eg sourcemod, metamod
AngelOlleta14 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 04:37.


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