Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function startup()
- event, n = os.pullEvent("player")
- if (n == "minicl55" or n == "AZNCharizard") then
- 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")
- local event, char = os.pullEvent ("char") -- limit os.pullEvent to the char event
- if char == "1" then -- if the returned value was 'e'
- clear()
- write ("Attempting to activate lockdown mode.")
- write ("Lockdown mode complete.")
- break
- else
- clear()
- print ("Invalid character! Resetting. Please allow 2 seconds for reset.")
- wait(1.5)
- clear()
- 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")
- end
- startup()
- else
- print("User is not an admin or a verified user")
- startup()
- end
- end
- startup()
Advertisement
Add Comment
Please, Sign In to add comment