Pointshop remove items from joined player

So my problem here
My server use mechanicalmind prophunters gamemode and pointshop
When someone who have trails or pets in pointshop join server while round in progress he starts spectating game with his trails and pets.
So alive player has trails of teammate dead player who spectate.
How can I fix this?

I tried to add some lines in sv_player_extension.lua
if self:GetObserverMode() != OBS_MODE_NONE and not itemexcept then return end
–if 2 != nil and self:Team() == 2 and not self:Alive() then return end
but this does not help me(