execute as @a[tag=police,scores={police.bomj=1..}] run function ws:misc/police/policebomj
execute as @a[tag=mafioz,scores={mafioz.died=1..}] if entity @a[tag=police,scores={police.killed=1..}] run function ws:misc/police/policepay
execute as @a[scores={police.bounty=1..}] run function ws:misc/police/policebounty