addEventHandler("onPlayerWasted", root,
function(_, attacker)
if attacker and attacker ~= source and getElementType(attacker) == "player" then
local level = getPlayerWantedLevel(source)
if level > 3 then
if getPlayerTeam(attacker) and getTeamName(getPlayerTeam(attacker)) == "شرطي" then
setTimer(setElementPosition, 3000, 1, source, x, y, z)
end
end
end
end
)