Raised This Month: $ Target: $400
 0% 

Detect if a player has made damage to another player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 11-16-2014 , 02:21   Re: Detect if a player has made damage to another player
Reply With Quote #1

better use offset

PHP Code:
new const m_lastDamageAmount 334
#define damag(%0) get_pdata_int(%0,m_lastDamageAmount,5)


register as Post

 RegisterHam
(Ham_TakeDamage "player" "TakeDamage" ); 

public 
TakeDamagevic iInflictor att Float:dmg DmgBits )
server_print("damage done to victim is  %.2f"damag(vic) ) 
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
Reply



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 17:37.


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