Raised This Month: $ Target: $400
 0% 

[CORE] No way to block log entries


  
 
 
Thread Tools Display Modes
Author Message
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 09-29-2004 , 21:01   [CORE] No way to block log entries
#1

There is no way to block log entries, such as when you use user_kill, HLDS always logs it as a suicide by "world". I want to block that.

BTW BAIL told me to post this in here, I guess so he would not forget about it.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
T(+)rget
Senior Member
Join Date: Mar 2004
Old 09-30-2004 , 05:11  
#2

Use fakemeta and register alertmessage forward, that is where the log messages get sent from.

You also need to block the client_printf since it also spams a message to client console.
T(+)rget is offline
BAILOPAN
Join Date: Jan 2004
Old 10-03-2004 , 03:07  
#3

Okay, this was a weird one.

1. T(+)rget is right, however, this was one of the few functions not implemented in Fakemeta, probably because it's a weird one (uses varargs). It's added now.

2. I don't want to make register_logevent blockable. plugin_log, however, is now blockable. If you want to use the two in combination, you can do this:

Code:
new blockLog = 0 public log_event_thing() {     blockLog = 1 } public plugin_log() {    if (blockLog)    {       blockLog = 0       return PLUGIN_HANDLED    }    return PLUGIN_CONTINUE }
__________________
egg
BAILOPAN is offline
 



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 00:44.


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