Raised This Month: $ Target: $400
 0% 

Hostage damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
rcoder
Junior Member
Join Date: Oct 2008
Location: Kharkov, Ukraine, Europe
Old 05-06-2010 , 15:44   Hostage damage
Reply With Quote #1

Hi, i try to catch how many damage player has been done to a hostage and i found only this code:

Code:
#include <amxmodx>
#include <hamsandwich>
 
public plugin_init()
{
RegisterHam(Ham_Takedamage, "hostage_entity", "hostTakeDamage") 
}
 
public hostTakeDamage(iHostage, iInflictor, iAttacker, Float:flDamage, iDamageType)
{
   if( ExecuteHam(Ham_IsPlayer, iAttacker) )
   {
SetHamParamFloat(4, 0.0)
       return HAM_HANDLED
}
   return HAM_IGNORED
}
can i catch it without HAM ? For example, with logevent

Code:
register_event("TextMsg", "TextMsg_Injured_Hostage", "b", "1=4", "2=#Injured_Hostage")
thanks
rcoder 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 03:40.


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