--Fancy stuff os.pullEvent = os.pullEventRaw serverid = 1172 --WRITE YOUR LOCAL SERVERID HERE! term.setBackgroundColor(colors.blue) term.setTextColor(colors.black) term.clear() --rednet | login rednet.open("top") term.setCursorPos(1,1) print"Dark OS Login Screen V1.2 Created by loganole" term.setCursorPos(8,8) write"Username: " user =read() term.setCursorPos(8,9) write"Password: " pass =read("*") rednet.send(serverid,user) term.setCursorPos(8,10) print"Connecting To Server" sleep(1) rednet.send(serverid,pass) id,message = rednet.receive(7) --Do not change ! if id ==serverid and message =="true" then term.setCursorPos(8,11) term.setTextColor(colors.green) print"Welcome" sleep(2) term.setBackgroundColor(colors.black) term.clear() sleep(0) term.setBackgroundColor(colors.black) term.setTextColor(colors.orange) term.setCursorPos(1,1) print(user.. " Logged On") elseif id ==serverid and message =="truea" then term.setCursorPos(8,11) term.setTextColor(colors.green) print("Welcome " ..user " [Admin]") sleep(2) term.setBackgroundColor(colors.black) term.clear() term.setTextColor(colors.orange) term.setCursorPos(1,1) print(user.. " [Admin] Logged On") write("Command > ") term.setBackgroundColor(colors.black) local admin = true elseif id ==serverid and message =="false" then term.setCursorPos(8,11) term.setTextColor(colors.yellow) print"Username or Password is incorrect" sleep(2) os.shutdown() elseif id ==serverid and message =="banned" then term.setCursorPos(8,11) term.setTextColor(colors.orange) print"Sorry, Your Account Has Been Banned" sleep(3) os.shutdown() else term.setCursorPos(8,11) term.setTextColor(colors.black) print"Cannot connect to server, may be down for maintenance" sleep(2) os.shutdown() end