Advertisement
Arekkusu121

Door lock (close)

Jun 29th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local tArgs = { ... }
  2. if #tArgs == 0 or #tArgs > 1 then
  3.   print("Usage:")
  4.   print("close <password>")
  5.   return
  6. end
  7.  
  8. if #tArgs == 1 then
  9.   local password = tArgs[1]
  10.   if password == "abc123" then -- Change 'abc123' to your password.
  11.     print("Closing door...")
  12.     rs.setOutput("right", false) -- Change 'right' to the side of your door.
  13.   end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement