Raised This Month: $ Target: $400
 0% 

[Help] Damage Event


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BhK
Junior Member
Join Date: Dec 2014
Location: India
Old 12-20-2014 , 13:20   Re: [Help] Damage Event
Reply With Quote #6

Quote:
Originally Posted by Bugsy View Post
Yes, with Ham Sandwich
Thanks,
After searching i have made these, tell if something going wrong !
Its working

PHP Code:
#define OFFSET_LAST_HIT_GROUP      75 
#define EXTRAOFFSET_PL_LINUX        5 

public fw_takedamage(victiminflictorattackerFloat:damagebits
{
    if(!
is_user_connectedattacker ) || inflictor != attacker)
        return 
HAM_IGNORED;
    
    new  
hitgroup get_pdata_int(victimOFFSET_LAST_HIT_GROUPEXTRAOFFSET_PL_LINUX
    
    switch( 
hitgroup )
    {
        case 
HIT_HEAD
        {
            
client_print(attackerprint_center"Head")
        }
        case 
HIT_CHEST
        {
            
client_print(attackerprint_center"Chest")
        }
        case 
HIT_STOMACH
        {
            
client_print(attackerprint_center"Stomach")
        }
        
// etc
    
}
    return 
HAM_IGNORED;

BhK 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:23.


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