Raised This Month: $ Target: $400
 0% 

Player fall on head no damage?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
brian201049
Member
Join Date: Mar 2011
Location: Hong Kong
Old 04-08-2011 , 10:51   Player fall on head no damage?
Reply With Quote #1

I have a problem.

How to let Ham_TakeDamage know a player touch another player's head?

HELP ME PLZ! THX A LOT

P.S. Sorry for my bad English..
brian201049 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-08-2011 , 12:15   Re: Player fall on head no damage?
Reply With Quote #2

See m_LastHitGroup offset. (75).

const m_LastHitGroup = 75;

if( get_pdata_int( victim, m_LastHitGroup ) == HIT_HEAD )
{

}
__________________
Arkshine is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-08-2011 , 16:27   Re: Player fall on head no damage?
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
See m_LastHitGroup offset. (75).

const m_LastHitGroup = 75;

if( get_pdata_int( victim, m_LastHitGroup ) == HIT_HEAD )
{

}
Arkshine, I think you misunderstood him.
He wants when a player falls on top of another player, the player on the bottom takes damage in the head.

@brian201049
I'm pretty sure this has been made before.
You could probably find it by looking in the (Un)Approved Plugins.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
brian201049
Member
Join Date: Mar 2011
Location: Hong Kong
Old 04-09-2011 , 02:04   Re: Player fall on head no damage?
Reply With Quote #4

Quote:
Originally Posted by Exolent[jNr] View Post
Arkshine, I think you misunderstood him.
He wants when a player falls on top of another player, the player on the bottom takes damage in the head.

@brian201049
I'm pretty sure this has been made before.
You could probably find it by looking in the (Un)Approved Plugins.
YES!! I used Arkshine's script and some player fall on another player back and the player take damage.
brian201049 is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 04-09-2011 , 09:42   Re: Player fall on head no damage?
Reply With Quote #5

check this out:
http://forums.alliedmods.net/showthread.php?t=58024
matsi is offline
Reply


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 20:09.


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