s3ptum

Server TPPI RULES

Jan 17th, 2015
280
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 = 2
  17. m.setCursorPos(1, y2)
  18. centerText("SERVE RULES")
  19. m.setCursorPos(1, y2 + 2)
  20. centerText("---------")
  21. m.setCursorPos(1, y2 + 4)
  22. centerText("NO GREIFING")
  23. m.setCursorPos(1, y2 + 6)
  24. centerText("NO ABUSIVE LANGUAGE")
  25. m.setCursorPos(1, y2 + 8)
  26. centerText("RESPECT OTHERS")
  27. m.setCursorPos(1, y2 + 10)
  28. centerText("BANNED ITEMS ARE")
  29. m.setCursorPos(1, y2 + 12)
  30. centerText("AVAILABLE ON OUR ENJIN PAGE")
  31. m.setCursorPos(1, y2 + 14)
  32. centerText("LINKSPHERE.ENJIN.COM")
  33. m.setCursorPos(1, y2 + 16)
  34. centerText("STAFF SHALL NOT ABUSE POWER")
  35. m.setCursorPos(1, y2 + 18)
  36. centerText("HAVE FUN")
Advertisement
Add Comment
Please, Sign In to add comment