minicl55

Untitled

May 8th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.99 KB | None | 0 0
  1. function startup()
  2. event, n = os.pullEvent("player")
  3. if (n == "minicl55" or n == "AZNCharizard") then
  4. print("Welcome, ".. n.."! Options:\n\nPress 1 to activate lockdown mode\nPress 2 to deactivate lockdown mode\nPress 3 to activate noSpawn\nPress 4 to disable noSpawn\nPress 5 to exit")
  5. local event, char = os.pullEvent ("char") -- limit os.pullEvent to the char event
  6.    if char == "1" then -- if the returned value was 'e'
  7.        clear()
  8.        write ("Attempting to activate lockdown mode.")
  9.        
  10.        write ("Lockdown mode complete.")
  11.        break
  12.    else
  13.        clear()
  14.        print ("Invalid character! Resetting. Please allow 2 seconds for reset.")
  15.        wait(1.5)
  16.        clear()
  17.        print("Welcome, ".. n.."! Options:\n\nPress 1 to activate lockdown mode\nPress 2 to deactivate lockdown mode\nPress 3 to activate noSpawn\nPress 4 to disable noSpawn\nPress 5 to exit")    
  18.    end
  19. startup()
  20. else
  21. print("User is not an admin or a verified user")
  22. startup()
  23. end
  24. end
  25.  
  26. startup()
Advertisement
Add Comment
Please, Sign In to add comment