Raised This Month: $ Target: $400
 0% 

Damage Event with TS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stupok
Veteran Member
Join Date: Feb 2006
Old 12-31-2006 , 04:14   Re: Damage Event with TS
Reply With Quote #1

Code:
register_event("PTakeDam", "PTakeDam_function", "a") register_message(50, "damage_function")

PTakeDam provides the amount of damage dealt.
50 (it has no name) is called directly after PTakeDam, and provides the id's of the victim(2) and killer(3)

I'm still not certain, though, when to use register_event() and when to use register_message()


EDIT: I checked again, and I'd go with TSHealth instead of PTakeDam.

Last edited by stupok; 12-31-2006 at 04:23.
stupok 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 22:23.


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