Advertisement
dadragon84

logout

Nov 10th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. print("Are you sure you want to log out?")
  2.  sleep(1)
  3.  answer = read()
  4.  if answer == "yes"
  5.  then
  6.   print("Ending session...")
  7.   sleep(2)
  8.   os.shutdown()
  9.  else
  10.   print("Log out cancelled")
  11.   sleep(2)
  12.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement