TTT Pointshop Weapons Spawning on Spectators

Some players have perma weapons in the pointshop, I need a way to fix it so that when a map changes, a person who owns those weapons and is in spectator doesn’t spectate with the guns. Any ideas?

Put a “if ply:IsSpec() or not ply:Alive() return end” check in the items equip function