purchasing from Pointshop while dead only

Is there any simple command for a pointshop item that will allow someone only to purchase it while dead, instead of while alive?

won’t work because pointshop doesn’t let the player purchase while dead by default.