Consultation about "make_deathmsg"
Hello everyone !
Here is my muddle : I were using "make_deathmsg ( killer, victim, headshot, weapon[] ) " to made a death message. But the "DeathMsg" event could not catch this message. So i'm compelled to using "fakedamage" and "Damage" event to make/judge it. As you know that's heavy and complicated. It's this function just make a "fake" message? Or i miss something? Someone can helped me? Thanks! Sorry for my bad English. |
Re: Consultation about "make_deathmsg"
I have never used make_deathmsg, but you can try this:
Code:
register_message(get_user_msgid("DeathMsg"), "deathmessage")Code:
|
Re: Consultation about "make_deathmsg"
make_deathmsg - is just to send a DeathMsg message to the client(s).
fakedamage - is to kill the user by dealing a real damage If you want to send a hookable DeathMsg you can modify make_deathmsg stock function to use ewrite_* and emessage_* natives. Code:
But read this notes before you going to use the modified function. Quote:
|
Re: Consultation about "make_deathmsg"
Thanks dutchmeat & VEN !
Now the other plugin can hook the message,thanks very much! |
Re: Consultation about "make_deathmsg"
You are welcome :)
|
Re: Consultation about "make_deathmsg"
how to block fakedamage's deathmsg?
|
| All times are GMT -4. The time now is 06:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.