Lock and unlocking

What is the best way to add locking and unlocking to an already made level system.
ALLTHE BEST )Thanks(
http://cantcodewontcode.tumblr.com/
ALLTHE BEST )Thanks(
http://cantcodewontcode.tumblr.com/
Comments
Look at them, that would be the easiest way to do it.