door owning

im wondering if i can make a door owning system like darkrp but for sandbox and im not sure how is there anyone who can help me?

[editline]29th October 2015[/editline]

never mind about that i just need help on this,



if ent:GetOwner() == // i dont know what to put here :P


[editline]29th October 2015[/editline]

nvm solved