Raised This Month: $ Target: $400
 0% 

[HELP] Body explode dont work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 07-27-2013 , 19:36   Re: [HELP] Body explode dont work
Reply With Quote #1

work thx, just another question can u give another method to kill instantly with headshot if is possible with deagle weapon? thx
wicho is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-28-2013 , 02:13   Re: [HELP] Body explode dont work
Reply With Quote #2

Your code is quite good, you could just alter functions params though, and make code more clear :

PHP Code:
// Ham Trace Attack Forward
public fw_TraceAttack(victimattackerFloat:damageFloat:direction[3], tracedamagebits)
{
    if(    
victim != attacker
    
&&    (<= attacker <= g_maxPlayers)
    &&    
flag_get(g_IsSurvivorattacker)
    &&    
get_user_weapon(attacker) == CSW_DEAGLE
    
&&    get_tr2(traceTR_iHitgroup) == HIT_HEAD    )
    {
        
SetHamParamFloat(39999.9);
        
SetHamParamInteger(6DMG_BULLET DMG_ALWAYSGIB);
        return 
HAM_HANDLED;
    }
    return 
HAM_IGNORED;

__________________
- tired and retired -

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


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