block logging of "suicide"?
hey people,
as blocking of logmessages is possible now, i'd like to use that to block "suicides" after someone got killed by a gun with less than 100 damage. (gets damage and then "user_kill") bailopan posted a help: Code:
but i don't understand it :oops: sorry for my ignorance, but is anyone here that can tell me how to block a suiced log with it? :shock: thanks for your help. |
the plugin_log stuff is a quick "switch". it will only block the log output if the switch is set to 1, then the switch turns off.
So catch the damage event, then either block the kill message or set the log block switch to 1. Blocking thekill message is probably a better idea (set_msg_block). |
okey, i'm trying to understand, but i'm a bit slow on this one
for some reason i don't know. that's what i have so far (just a snippet of the main function): Code:
so it would be: Code:
or do i get that wrong? by the way, thanks for your reply, bailopan :D |
You can try that, if it doesn't work, post ;]
|
Quote:
PlayerXY commited suicide with "world" still appears in the logs whenever that specific user_kill is used. here's the whole thing: Code:
|
You may need to block the death msg then... I dunno
|
Quote:
but the plugin is useless if it logs the "kills" as "suicides" as every stats program (HLStats, PsychoStats) will just catch it as suicides :( so i'll throw the plugin into the freezer and warm it up again when there's a ways to block the log :P thanks for your help, bailopan. :D |
you can block logs all right, the problem is timing.
You don't know when the log actually gets appended. |
Quote:
like you can do with the deathmessages. that would be awsome :wink: |
yes but the problem is you don'tknow when that log will take place... if could take place like this:
1. Damage is dealt 2. Player is killed 3. Kill is logged 4. Damage message is sent 5. Death message is sent See the problem? |
| All times are GMT -4. The time now is 17:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.