Raised This Month: $ Target: $400
 0% 

register_event damage/dead


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 08-01-2013 , 12:57   Re: register_event damage/dead
Reply With Quote #2

Dead event:
PHP Code:
register_event("DeathMsg","event_death","a");
---------------------------------------------

public 
eventt_death() {
    
//Get the killer
    
new killer read_data(1);
    
    
//Get the victim
    
new victim read_data(2);

    
// You code

Damage (takedamage):
PHP Code:
public plugin_init()
      
RegisterHam("Ham_TakeDamage""player""Player_Hurt")

public 
Player_Hurt(victiminflictorattackerFloat:dmgdmgbits) {
       
      
//Bla bla bla


Next search on forum, you fiind 1000+ examples
DWIGHTpN is offline
 



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 15:48.


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