ive got this script, but it doesnt work...
it increases the demage of the sniper rifle but in server its still at the same level
hope someone can help me
function killbysniper(attacker, attackerweapon, bodypart, loss)
if(attackerweapon == 34) then
setElementHealth(source, 33)
end
elseif(bodypart == 9) and(attackerweapon ==34) then
setElementHealth(source, 0)
end
end
addEventHandler("onPlayerDamage", getRootElement(), killbysniper)