Raised This Month: $ Target: $400
 0% 

Ham_TakeDamage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-02-2010 , 18:54   Ham_TakeDamage
Reply With Quote #1

I have a question..
PHP Code:
public plugin_init()
      
RegisterHam("Ham_TakeDamage""player""Player_Hurt")

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


This is right?

Inflictor is the gun and dmgbits is the body part where the bullet collides?

Another question.

If I put "kill" in console, or I kill me self with the worldspawn. The attacker & the victim are my id?

Thanks !

Last edited by Mxnn; 08-02-2010 at 20:49.
Mxnn is offline
 


Thread Tools
Display Modes

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 00:12.


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