This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
masonator2007's profile picture

Lock Program

Started by masonator2007, 04 January 2017 - 10:21 PM
masonator2007 #1
Posted 04 January 2017 - 11:21 PM
This program is simple
Things include
1.Making your system unusable

You have some choices
1.You can run the program manually via command - pastebin run 0fnRwbwe
2.You can download the program via command - pastebin get 0fnRwbwe lock
3.Type in code into terminal - http://pastebin.com/0fnRwbwe (If on a server and doesn't let you use pastebin)

Also take a look at the program once you've gotten it.

Code:
  • – Made by masonator2007
  • – Subscribe to me :)/>
  • shell.run("clear") – clears terminal
  • print [[System has been locked, futher notice ask owner.]]
  • print [[Restart system to unlock]] – Delete this if you don't want people to see this
  • sleep(9999999) – To keep system from doing anything




:)/> :)/> :)/> :)/> :)/> :)/> :)/> :)/> :)/>
Piorjade #2
Posted 05 January 2017 - 10:10 PM
The sleep function will eventually run out and you can use it again.
Better solution:

--this comes instead of sleep
while true do
  os.pullEventRaw()
end