Dark RP Selling all doors at once

Im looking for a way to sell all doors at once on dark rp. All doors that the player pressing the button owns. Im not sure how to go about this.

Hey, can you show us what you’ve tried so far? A good place to start is to look up the F2 / buy door code to see how a door is purchased and is sold. Then create a system where if they push a button or type a command it’ll go through the list where the doors which the user owns is stored and runs the command to sell each one.

Here’s the DarkRP Help thread:
http://forum.facepunch.com/showthread.php?t=1249475

I haven’t tried anything yet. I’m at a loss. No idea where to start on this one.

Run the console command “rp_unownall <player>”