Jump to content




editing programs under os.PullEvent = os.PullEventRaw


  • You cannot reply to this topic
9 replies to this topic

#1 sleawnis

  • Members
  • 29 posts

Posted 27 October 2012 - 09:28 PM

ive made a password login system on my spawn base heres what it looks like:
Posted Image
quite snassy :D/>
anyway i need to make it unhackable with os.pull.... all that stuff but if i do would i beable to add users to the system after with a floppy drive maby?

#2 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 27 October 2012 - 09:30 PM

Just make an admin account which can add users :D/>

Btw - Nice laptop :)/>

#3 sleawnis

  • Members
  • 29 posts

Posted 27 October 2012 - 10:16 PM

ty lol do u think you could help me make a admin account? would it be somethign to like ignore the pull event block? could u make sum quick code pls?

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 27 October 2012 - 10:22 PM

Just put a floppy with a blank file named startup into a disk drive next to the computer, then reboot the computer.

#5 ChunLing

  • Members
  • 2,027 posts

Posted 27 October 2012 - 10:33 PM

That works well enough. Just have the drive on a side that people can't access unless they've entered the system.

#6 sleawnis

  • Members
  • 29 posts

Posted 28 October 2012 - 04:37 PM

is there a way to set up a admin account tho cause it would look cool to show my friends :D/> ?

#7 ChunLing

  • Members
  • 2,027 posts

Posted 28 October 2012 - 06:36 PM

Sure, if you use a table of passwords keyed by user, just make the user a key to a subtable instead of a simple value, and it can contain a "user_level" value, like so:
t_users = {
geraldine = {password = "something",user_level = 3,},fallion = {password = "evil",user_level = 1,},
angelus = {password = "divine",user_level = 5,},almighty = {password = "godly",user_level = 10,},
}
Then give the higher level functions an if t_users[current_user].user_level > 4 then ...(body of function)...end structure. Now the function only does anything for users with a user_level higher than 4 (so angelus and almighty). You can create any number of user_levels, as many as you need, but probably two is enough, so you can just have a boolean value and just do "t_users[current_user].user_level then" stuff.

#8 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 28 October 2012 - 10:56 PM

Amazing I must say.

#9 sleawnis

  • Members
  • 29 posts

Posted 29 October 2012 - 04:42 PM

View PostExpenox, on 28 October 2012 - 10:56 PM, said:

Amazing I must say.
what is?

#10 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 29 October 2012 - 05:30 PM

View Postsleawnis, on 29 October 2012 - 04:42 PM, said:

View PostExpenox, on 28 October 2012 - 10:56 PM, said:

Amazing I must say.
what is?

Your acsii art ;D

Do you have 2 separate files for users and passwords or are you using one file to save them?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users