Raised This Month: $ Target: $400
 0% 

Detect DMG_FALL Death


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 05-07-2013 , 08:36   Re: Detect DMG_FALL Death
Reply With Quote #1

Quote:
Originally Posted by Arkshine View Post
Another way If I remember well, is to hook Ham_Killed and checking bits with m_bitsDamageType offset (76).
PHP Code:
public fw_HamKilled(victimattackershouldgib)
{
    if(
get_pdata_int(victim,76) == DMG_FALL)
    {
                     
//player is crash
    
}

That is right?
FromTheFuture is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-07-2013 , 09:42   Re: Detect DMG_FALL Death
Reply With Quote #2

Quote:
Originally Posted by FromTheFuture View Post
PHP Code:
public fw_HamKilled(victimattackershouldgib)
{
    if(
get_pdata_int(victim,76) == DMG_FALL)
    {
                     
//player is crash
    
}

That is right?

More & DMG_FALL.
__________________
Arkshine 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 10:56.


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