How can I make it so that when people die with environment their items are not dropped.

Thanks, but how can I achieve this?