How do you make a jail that only if a hider dies they go to jail

Here, just use this.