How to kill all entities with the same score when a player with this score dies?

I think it`s pretty much self explanatory, i need to kill all entities which have the same score when a player dies (i use scores as IDs)
Continue to help post