Advertisement
s3ptum

TPPI SERVER NEWZ AND MOAR!1

Feb 12th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. m = peripheral.wrap("back")
  2. m.clear()
  3. m.setCursorPos(1,1)
  4. m.setTextScale(2)
  5.  
  6. local function centerText(text)
  7. x,y = m.getSize()
  8. x1,y1 = m.getCursorPos()
  9. m.setCursorPos((math.floor(x/2) - (math.floor(#text/2))), y1)
  10. m.write(text)
  11. end
  12.  
  13. --Call function "centerText("")" to set text
  14. --Use m.setCursorPos(1,y) to choose placement on screen
  15.  
  16. y2 = 7
  17. m.setCursorPos(1, y2)
  18. centerText("NEWZ AND MOAR")
  19. m.setCursorPos(1, y2 + 2)
  20. centerText("Enjin site now has server stats")
  21. m.setCursorPos(1, y2 + 3)
  22. centerText("Server is now 1 month old!")
  23. m.setCursorPos(1, y2 + 4)
  24. centerText("Some players are going to get presents!")
  25. m.setCursorPos(1, y2 + 5)
  26. centerText("Economy is working kinda!")
  27. m.setCursorPos(1, y2 + 6)
  28. centerText("Looking for people with plugin knowledge!")
  29. m.setCursorPos(1, y2 + 7)
  30. centerText("Mini-Games are in Development!")
  31. m.setCursorPos(1, y2 + 8)
  32. centerText("linksphere.enjin.com please!")
  33. m.setCursorPos(1, y2 + 10)
  34. centerText("END TRANSMISSION")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement