block log messages...
Not sure how to block log messages from the engine. I know howto do death and score messages, but not log.
Looking in some logs fomr the laser plugin and noticed this for every kill.... Code:
L 05/21/2004 - 21:09:48: "[POD]ffmcobalt (5)<57><0><TERRORIST>" committed suicide with "world" |
gimme the link the the lazergun plugin and Ill fix it up for u
|
I don't need it to be "fixed" I just need to know how to block the log messages.
Its in the plugins forums, I posted it a while ago. like how you do this for death messages Code:
get_user_msgid("DeathMsg")Or if there is some other way to do this. BTW if you have any suggestions for the plugin you can tell me, I am a very competent coder so I don't really need anyone to "fix" it for me, unless you see an obvious problem? |
Unfortunately, it's not possible to supercede log messages in AMXx 0.16 because it hooks the POST call in Metamod.
If you want, we could change it so you can block log messages in the plugin_log() forward. |
yeah anyway to block the suicide logging when using the user_kill would be nice.
Right now I have this Code:
set_msg_block(gmsgDeathMsg,BLOCK_ONCE) |
set the user deadflag to 1 and the user hp to 0 and all the spec stuff
|
ok, jtp: I will make the log supercede-able for 0.20
Then you can just set a global "user has suicided flag", catch the log event in plugin_log(), and return PLUGIN_HANDLED instead of PLUGIN_CONTINUE (and toggle the flag again). |
Quote:
Quote:
|
| All times are GMT -4. The time now is 14:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.