Hello guys, I would like some help with this script below. My idea is to make two arenas (PvP), one of them is to kill any player with just one shot. The other arena is just killing with headshots! I was indicted to put elementData, but I don't know how to do that. Can someone help me?
Sorry for bad English.
Script Arena Oneshot
function playerDamage_text ( attacker, weapon, bodypart, loss )
if ( bodypart == 3 and attacker and attacker ~= source ) then
killPed ( source, attacker, weapon, bodypart )
end
end
addEventHandler ( "onPlayerDamage", root, playerDamage_text )
--------------------------_----------------------------------
Script Headshot
function playerDamage_text ( attacker, weapon, bodypart, loss )
if ( bodypart == 9 and attacker and attacker ~= source ) then
killPed ( source, attacker, weapon, bodypart )
end
end
addEventHandler ( "onPlayerDamage", root, playerDamage_text )