Raised This Month: $ Target: $400
 0% 

Simple Message Suppression


Post New Thread Reply   
 
Thread Tools Display Modes
bzz0
Senior Member
Join Date: Oct 2005
Location: Latvia, Riga
Old 05-30-2009 , 06:14   Re: Message Suppression
Reply With Quote #81

Sry guys - I cannot understand what this plugin exactly does?
__________________
Let's make it better
bzz0 is offline
Atreus
SourceMod Donor
Join Date: Apr 2005
Location: San Diego, CA
Old 05-30-2009 , 06:47   Re: Message Suppression
Reply With Quote #82

It can do many things. What I personally use it for is to stop it from showing when Administrators go spectator so that if we're going to watch a hacker it won't show it.
Atreus is offline
Send a message via AIM to Atreus Send a message via MSN to Atreus
bzz0
Senior Member
Join Date: Oct 2005
Location: Latvia, Riga
Old 05-30-2009 , 07:42   Re: Message Suppression
Reply With Quote #83

Oh, that is nice I will install it on my serv.

How to config it to behavior like you pointed?
__________________
Let's make it better
bzz0 is offline
Atreus
SourceMod Donor
Join Date: Apr 2005
Location: San Diego, CA
Old 05-30-2009 , 09:48   Re: Message Suppression
Reply With Quote #84

Quote:
Originally Posted by bzz0 View Post
Oh, that is nice I will install it on my serv.

How to config it to behavior like you pointed?
Set sm_blockspectatemessage to 1, and sm_blockconnectmessage//sm_blockdisconnectmessage set to 0.

It's up to you whether you want to have admins still see the messages. I have it set so that while normal players can't see admins go spectator, other admins still can (by having the sm_adminshowmessages cvar in the config set to 1).

Running the plugin once will generate the config file.
Atreus is offline
Send a message via AIM to Atreus Send a message via MSN to Atreus
urus
Senior Member
Join Date: Jan 2007
Old 07-25-2009 , 07:06   Re: Message Suppression
Reply With Quote #85

Error found in ev_PlayerTeam:

Code:
decl String:clientName[255];
decl String:AuthID[255];
GetClientName(client,AuthID,sizeof(AuthID));
GetClientName(client,clientName,sizeof(clientName));
must be

Code:
decl String:clientName[64];
decl String:AuthID[24];
GetClientAuthString(client, AuthID, sizeof(AuthID));
GetClientName(client, clientName, sizeof(clientName));
__________________

Last edited by urus; 07-25-2009 at 07:59.
urus is offline
urus
Senior Member
Join Date: Jan 2007
Old 07-25-2009 , 13:03   Re: Message Suppression
Reply With Quote #86

And another error in ev_PlayerConnect.
Here GetClientOfUserId always return 0. Thus all code below don`t work.
And plugin blocked connected, address instead entered the game.

Corrected version in attach.
Attached Files
File Type: sp Get Plugin or Get Source (suppressmessages.sp - 422 views - 5.2 KB)
__________________

Last edited by urus; 07-25-2009 at 13:11.
urus is offline
MrSaturn
SourceMod Donor
Join Date: Jan 2009
Old 09-03-2009 , 20:53   Re: Message Suppression
Reply With Quote #87

Can you also add a block cvar for kicks?
__________________
MrSaturn is offline
psychonic

BAFFLED
Join Date: May 2008
Old 09-28-2009 , 18:41   Re: Simple Message Suppression
Reply With Quote #88

New version of this has been posted in the first post today. It will resolve some conflicts with other plugins that stemmed from certain events being blocked.
psychonic is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 09-28-2009 , 20:34   Re: Simple Message Suppression
Reply With Quote #89

Thanks, the admin feature was much needed.
__________________

DontWannaName is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 12-20-2009 , 06:14   Re: Simple Message Suppression
Reply With Quote #90

2Author:
There were added a new native for blocking event broadcasting in sourcemod 1.3 (hg2878).
PHP Code:
/**
 * Sets whether an event's broadcasting will be disabled or not.
 *
 * This has no effect on events Handles that are not from HookEvent
 * or HookEventEx callbacks.
 *
 * @param event         Handle to an event from an event hook.
 * @param dontBroadcast True to disable broadcasting, false otherwise.
 * @noreturn
 * @error               Invalid Handle.
 */
native SetEventBroadcast(Handle:eventbool:dontBroadcast); 
So you can release some kind of beta now. :)
Anyway after releasing sourcemod 1.3 this plugin may be unapproved because of using events re-firing. :-/
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
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 06:34.


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