Hallo, ich wollte mal fragen wie die if abfrage für rang 4-5 geschrieben wird für mein Rifle headshot script.
Lua
addEvent "onPlayerHeadshot"
addEventHandler("onPlayerDamage", getRootElement(),
function (attacker, weapon, bodypart, loss)
if weapon == 33 then
local result = triggerEvent("onPlayerHeadshot", source, attacker, weapon, loss)
if result == true then
if bodypart == 9 then
killPed(source, attacker, weapon, bodypart)
end
end
end
end
end
end
end
)
Alles anzeigen