
quite snassy
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?
Posted 27 October 2012 - 09:28 PM

Posted 27 October 2012 - 09:30 PM
Posted 27 October 2012 - 10:16 PM
Posted 27 October 2012 - 10:22 PM
Posted 27 October 2012 - 10:33 PM
Posted 28 October 2012 - 04:37 PM
Posted 28 October 2012 - 06:36 PM
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.
Posted 28 October 2012 - 10:56 PM
0 members, 1 guests, 0 anonymous users