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

account settings!

Started by thegreatstudio, 07 May 2013 - 09:17 AM
thegreatstudio #1
Posted 07 May 2013 - 11:17 AM
hey guys can you show me a code of a login system or a security system.
Kingdaro #2
Posted 07 May 2013 - 12:26 PM
Search for one in Programs.

If you're asking for us to make one right here, you should know the answer a lot of people are going to give you.
Xenthera #3
Posted 07 May 2013 - 12:43 PM
Simplest "Security" program. There's a bazillion ways of making a program like you asked, like having specific accounts and stuff. You really need to elaborate though.

password = "banana"
while true do
if read("*") == password then
	shell.run("<programnamehere>"
end
end
H4X0RZ #4
Posted 07 May 2013 - 04:21 PM
Simplest "Security" program. There's a bazillion ways of making a program like you asked, like having specific accounts and stuff. You really need to elaborate though.

password = "banana"
while true do
if read("*") == password then
	shell.run("<programnamehere>"
end
end
If you run this code, it'll say:

SecurityLock:4: ")" expected

(SecurityLock is an axample name)
sploders101 #5
Posted 07 May 2013 - 05:11 PM
I can post my simple security programs. BTW my touchscreen one was based off of someone else's but it is all my code so they do look the same cause i liked his layout.

Anyway, here they are:
touchscreen: pastebin.com/x4W2awF6 (/startup)
You will also need this file: pastebin.com/s9kuCHX5 (/bg)
or if you want a more simple approach: pastebin.com/M3RhYydY (/startup)