Script guards to loot killed players in guarded towns. If any player wants to take the dropped stuff, they would be attacked by guards too. Should work only for dropped stuff on player death.
Looted stuff would become available to sell at the town merchants, or at an auction house.