Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ex = 0
- print('select mode: "Add" or "Remove"')
- write("Mode:")
- m = read()
- if m == "Add" or "Remove" then
- if m == "Add" then
- write("enter player to add:")
- inp = read()
- Fold = "Assets/"
- FName = Fold .. inp
- fs.makeDir("Assets")
- inp = tostring(FName)
- if fs.exists(inp) then print("This player already exists!")
- else
- f = fs.open(FName,"w")
- write("enter access type:")
- t = read()
- Atype = "Level:" .. t
- f.write(Atype)
- f.close()
- print("Player successful Added")
- end
- elseif m == "Remove" then
- write("Enter Player Name:")
- w = read()
- inp = "Assets/" .. w
- if fs.exists(inp) then
- fs.delete(inp)
- print("Player Successful removed!")
- else
- print("Player not exist")
- end
- end
- print("if you need edit something again write(y/n)")
- con = read()
- if con == "y" then
- print("okey, i am starting program again!")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- print(">EAccess")
- shell.run("EAccess")
- ex = 1
- end
- if ex == 0 then
- print("if you like go to main program write(y/n)")
- com = read()
- if com == "y" then
- print("reboot , Goodbye")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- print(">Door")
- shell.run("startup")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement