Raised This Month: $ Target: $400
 0% 

Who can help me the event of Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kation
Junior Member
Join Date: Jul 2009
Location: China,中
Old 07-30-2009 , 23:34   Who can help me the event of Damage
Reply With Quote #1

I'm beginner of amxx.
And who can teach me?

I register this Damage Event
register_event("Damage", "event_damage", "be")

And how can I know the Attack Degree in the function event_damage?

Well, my English doesn't very good. Thank you.
Kation is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-31-2009 , 00:01   Re: Who can help me the event of Damage
Reply With Quote #2

Here's some info on the Damage event: http://wiki.tcwonline.org/Half-Life_..._Events#Damage

Here's a little demo

PHP Code:
register_event("Damage""event_damage""be" )

public 
event_damageid )
{
    new 
iDamage read_data);    

    if ( 
iDamage )
        
client_printid print_chat "Just took %d damage" iDamage );

__________________
Bugsy is offline
Kation
Junior Member
Join Date: Jul 2009
Location: China,中
Old 07-31-2009 , 02:08   Re: Who can help me the event of Damage
Reply With Quote #3

Thank you very much!
Kation 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 18:19.


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