PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
const m_LastHitGroup = 75;
new cvarHeadshot
public plugin_init ()
{
RegisterHam( Ham_TakeDamage, "player", "Event_PlayerTakeDamage" );
cvarHeadshot = register_cvar("headshot","1")
}
public Event_PlayerTakeDamage ( const Victim )
{
return get_pcvar_num( cvarHeadshot ) && ( get_pdata_int( Victim, m_LastHitGroup ) == HIT_HEAD ) ? HAM_SUPERCEDE : HAM_IGNORED;
}
It's arkshine code. You will also need to take care of the blood.
__________________