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

Blocking conVar announcements


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Russianeer
SourceMod Donor
Join Date: Feb 2011
Old 07-26-2011 , 19:50   Blocking conVar announcements
Reply With Quote #1

What method can I use to block the messages that occur after the cvar values have been modified?

This is what I tried so far:


PHP Code:
public OnPluginStart( )
{
    
HookEvent("server_cvar"EventServerCvar);
}

public 
Action:EventServerCvar(Handle:event, const String:name[], bool:dontBroadcast)
{
    return 
Plugin_Handled;


Last edited by Russianeer; 07-26-2011 at 20:24.
Russianeer is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-26-2011 , 21:16   Re: Blocking conVar announcements
Reply With Quote #2

Since only cvars marked as FCVAR_NOTIFY get announcements, and those cvars are usually marked as such for a reason, is there any particular reason you want to block them?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Russianeer
SourceMod Donor
Join Date: Feb 2011
Old 07-26-2011 , 21:50   Re: Blocking conVar announcements
Reply With Quote #3

I don't like certain cvars spamming chat such as timelimit, all talk, or the tags changing whenever vote critical hit or damage spread occurs.
Russianeer is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 07-26-2011 , 23:53   Re: Blocking conVar announcements
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?t=144616
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Russianeer
SourceMod Donor
Join Date: Feb 2011
Old 07-27-2011 , 01:56   Re: Blocking conVar announcements
Reply With Quote #5

Quote:
Originally Posted by berni View Post
Thanks.
Russianeer 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 01:16.


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