Raised This Month: $ Target: $400
 0% 

DeathMsg and Damage order problems


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
VEN
Veteran Member
Join Date: Jan 2005
Old 02-12-2007 , 11:10   Re: DeathMsg and Damage order problems
Reply With Quote #4

Quote:
the hitgroup isn't available yet
It is. It should be a get_user_attacker()'s fault. You have to cache the last three bullet attacking traces' hitgroup for every player. Use get_tr2(ptr, TR_iHitgroup) to get hitgroup, see [HOWTO] Detect fired particle creation/type/number/damage/obstacle/vector for details.

And on damage log message block/resend it using the original text and the cached hitgroup. Though you can't block/change a log message with register_logevent. You have to use the fakemeta module:
Code:
#include <amxmodx> #include <fakemeta> public plugin_init() {         register_forward(FM_AlertMessage, "AlertMessage") } public AlertMessage(AlertType:at_type, const message[]) {         // check if at_type == at_logged         // return FMRES_SUPERCEDE - to block the message         // return FMRES_IGNORED - to not block the message }
VEN 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