Raised This Month: $ Target: $400
 0% 

hook damage to an entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 03-11-2009 , 15:59   hook damage to an entity
Reply With Quote #1

PHP Code:
RegisterHam(Ham_TakeDamage"info_target""fwHam_takeDamage")
...
public 
fwHam_takeDamage() // huh ???
{
      
// ???

I don't have the slightest Ideea on how to make it... I want to check the damade dealt to an solid created entity, get attacker, damage, etc :}

also what pev_ values can I use for custom values on an entity... pev_iuserX are free for this type of usage ? :}
__________________
Hunter-Digital is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-11-2009 , 16:04   Re: hook damage to an entity
Reply With Quote #2

- Look into ham_const.inc next time :

public fwHam_takeDamage ( entity, idinflictor, idattacker, Float:damage, damagebits )

- Sure.
Arkshine is offline
Old 03-11-2009, 16:04
Exolent[jNr]
This message has been deleted by Exolent[jNr]. Reason: Hi, arkshine.
Reply


Thread Tools
Display Modes

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 08:59.


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