function zombiedamaged ( attacker, weapon, bodypart )
if getElementType ( source ) == "ped" and getElementType ( attacker ) == "player" then
if (getElementData (source, "zombie") == true) then
if ( bodypart == 9 and weapon == 24 or weapon == 25 or weapon == 34 ) then
triggerServerEvent ("headboom", localPlayer, source, attacker, weapon, bodypart )
end
end
end
end
addEventHandler ( "onClientPedDamage", getRootElement(), zombiedamaged )
addEvent( "headboom", true )
function Zheadhit ( ped,attacker, weapon, bodypart)
killPed ( ped, attacker, weapon, bodypart )
setPedHeadless ( ped, true )
end
addEventHandler( "headboom", getRootElement(), Zheadhit )