Raised This Month: $51 Target: $400
 12% 

Kill instantly with headshot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 08-23-2013 , 03:17   Kill instantly with headshot
Reply With Quote #1

Hi everybody well i make a class human to zombie plague to kill instantly with headshot with deagle but i want to kill instantly with knife too i try with some methods but dont work, can someone help me to make this? thx in advance..

this is the code i use:

PHP Code:
public fw_TraceAttack(victimattackerFloat:damageFloat:direction[3], tracedamagebits)
{
    new 
bool:isWeaponDeagle flag_get(g_IsSurvivorattacker) && get_user_weapon(attacker) == CSW_DEAGLE true false
    
    
// Avoid from self damage or it's not a deagle 
    
if (victim == attacker || !isWeaponDeagle)    
        return 
HAM_IGNORED;
    
    if (
get_tr2(traceTR_iHitgroup) == HIT_HEAD)         
        
ExecuteHam(Ham_Killedvictimattacker2)        
    
    return 
HAM_IGNORED


Last edited by wicho; 08-23-2013 at 03:27.
wicho 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 08:03.


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