Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("back")
- m.clear()
- m.setCursorPos(1,1)
- m.setTextScale(2)
- local function centerText(text)
- x,y = m.getSize()
- x1,y1 = m.getCursorPos()
- m.setCursorPos((math.floor(x/2) - (math.floor(#text/2))), y1)
- m.write(text)
- end
- --Call function "centerText("")" to set text
- --Use m.setCursorPos(1,y) to choose placement on screen
- y2 = 7
- m.setCursorPos(1, y2)
- centerText("A note from the Owner...")
- m.setCursorPos(1, y2 + 2)
- centerText("The idea for this server is to provide")
- m.setCursorPos(1, y2 + 3)
- centerText("a level playing field for all players. ")
- m.setCursorPos(1, y2 + 4)
- centerText("The server is still just a baby")
- m.setCursorPos(1, y2 + 5)
- centerText("I have many plans for more features. ")
- m.setCursorPos(1, y2 + 6)
- centerText("Like mini-games and more")
- m.setCursorPos(1, y2 + 7)
- centerText("Right now its very simple. ")
- m.setCursorPos(1, y2 + 8)
- centerText("Just some PvE economy survival.")
- m.setCursorPos(1, y2 + 10)
- centerText("Thanks, s3ptum")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement