[ANY] Console Chat Filter [1.0.0] [06/01/2012]

[ANY] Console Chat Filter [1.0.0] [06/01/2012]



This plugin removes console chat.



This is aimed at servers with custom maps that have annoying messages

every round, or worse when a player crosses a sensor (for example bhop_cobblestone).



Example


Code:


Console: Map by pAtq. d:- ) GL&HF

Console: Map by pAtq. d:- ) GL&HF

Console: Map by pAtq. d:- ) GL&HF

Console: Map by pAtq. d:- ) GL&HF

Console: Map by pAtq. d:- ) GL&HF

Console: Map by pAtq. d:- ) GL&HF


Cvars


Code:


sm_ccf_enable <1/0> // Enable Console Chat Filter. [0 = FALSE, 1 = TRUE]

Plans


Code:


None at the moment but happy to look at requests

Source


Code:


#define PLUGIN_NAME "consolechatfilter"

#define PLUGIN_AUTHOR "Jason Bourne"

#define PLUGIN_DESC "Blocks annoying console chat from maps"

#define PLUGIN_VERSION "1.0.0"

#define PLUGIN_SITE "www.immersion-networks.com"



new Handle:sm_ccf_enable = INVALID_HANDLE;



public Plugin:myinfo =

{

    name = PLUGIN_NAME,

    author = PLUGIN_AUTHOR,

    description = PLUGIN_DESC,

    version = PLUGIN_VERSION,

    url = PLUGIN_SITE

}



public OnPluginStart()

{

    AddCommandListener(Command_Say, "say");

    sm_ccf_enable = CreateConVar("sm_ccf_enable", "1", "Enable Console Chat Filter. [0 = FALSE, 1 = TRUE]");

}





public Action:Command_Say(client, const String:command[], argc)

{

    if(GetConVarBool(sm_ccf_enable)) // if plugin is enabled

    {

        if (client==0) // is console talking ?

        {

            return Plugin_Stop;

        }

        else                   

        {

            return Plugin_Continue;   

        }

    }

    return Plugin_Continue;       

}

















Attached Files





File Type: sp


Get Plugin or
Get Source (consolechatfilter.sp - 912 Bytes)








Orignal From: [ANY] Console Chat Filter [1.0.0] [06/01/2012]

No comments

Not a single link is allowed to submit in comment :o