Quote:
Originally Posted by Bugsy
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(victim, inflictor, attacker, Float:damage, bits)
{
if(!is_user_connected( attacker ) || inflictor != attacker)
return HAM_IGNORED;
new hitgroup = get_pdata_int(victim, OFFSET_LAST_HIT_GROUP, EXTRAOFFSET_PL_LINUX)
switch( hitgroup )
{
case HIT_HEAD:
{
client_print(attacker, print_center, "Head")
}
case HIT_CHEST:
{
client_print(attacker, print_center, "Chest")
}
case HIT_STOMACH:
{
client_print(attacker, print_center, "Stomach")
}
// etc
}
return HAM_IGNORED;
}