AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Who can help me the event of Damage (https://forums.alliedmods.net/showthread.php?t=98936)

Kation 07-30-2009 23:34

Who can help me the event of Damage
 
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.

Bugsy 07-31-2009 00:01

Re: Who can help me the event of Damage
 
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 );



Kation 07-31-2009 02:08

Re: Who can help me the event of Damage
 
Thank you very much!


All times are GMT -4. The time now is 18:19.

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