Raised This Month: $ Target: $400
 0% 

No Headshot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 06-10-2009 , 12:51   Re: No Headshot
Reply With Quote #10

PHP Code:

#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

const m_LastHitGroup 75;
new 
cvarHeadshot

public plugin_init ()
{
    
RegisterHamHam_TakeDamage"player""Event_PlayerTakeDamage" );
    
    
cvarHeadshot register_cvar("headshot","1")
}

public 
Event_PlayerTakeDamage ( const Victim )

    return 
get_pcvar_numcvarHeadshot ) && ( get_pdata_intVictimm_LastHitGroup ) == HIT_HEAD ) ? HAM_SUPERCEDE HAM_IGNORED;

It's arkshine code. You will also need to take care of the blood.
__________________

Last edited by joaquimandrade; 06-10-2009 at 12:55.
joaquimandrade 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 13:59.


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