AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Blocking a log message (https://forums.alliedmods.net/showthread.php?t=6352)

jtp10181 09-28-2004 20:24

Blocking a log message
 
how can I block a log message form getting logged, BAIL told me it would be possible in 0.20 but I have no idea where to start looking.

Basically I want to use "user_kill" to kill someone but block the log message that says they commited suicide with "world"

Thanks for any help

Ingram 09-29-2004 07:12

/* Called when a client types kill in console. */
forward client_kill(id);

in engine. does that help?

Freecode 09-29-2004 15:26

try registering the log message and return PLUGIN_HANDLED on the right 1

karlos 09-29-2004 15:54

try this:
Code:
set_msg_block(get_user_msgid("DeathMsg"),BLOCK_ONCE) fakedamage(id,"trigger_hurt",9999.0,0)
it kills a client wihout any message
it should work by replacing fakedamage func with user_kill too

Geesu 09-29-2004 16:04

yea but blocking deathmsg doesn't block the logging of the death by world...

jtp10181 09-29-2004 18:39

Quote:

Originally Posted by pimp daddy
yea but blocking deathmsg doesn't block the logging of the death by world...

exactly.... which is what I need to do....

BAILOPAN 09-29-2004 19:05

Sorry, I forgot to do this.

Post a message about thisin the bug reports forum and I'll do it when I get the chance

PM 09-30-2004 11:23

Blocking the deathmessage should not block the log I think. You would probably need to block AlertMessage to block the server logs. Not sure though.


All times are GMT -4. The time now is 17:24.

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