Sayomie550

Untitled

Dec 27th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.58 KB | None | 0 0
  1. local tText = {
  2. "Rule 1 - Be considerate of others.",
  3. "  * Ask before entering someone's are; Leave if told to.",
  4. "Rule 2 - Be Respectful of staff.",
  5. "  * Use the available methods (petitions, forums, ect) to request help.",
  6. "  * Do not demand/beg for staff to do things for you.",
  7. "Rule 3 - Use Chat Appropriately.",
  8. "  * Use regular case or title case, not all capitals.",
  9. "  * Explicit language will not be tolerated!",
  10. "  * Use other channels as intended.",
  11. "Rule 4 - Follow building guidlines.",
  12. "  * Do not build 1x1 towers.",
  13. "  * Do not build machines or contraptions that cause lag.",
  14. "  * Do not build next to spawn towns without permission.",
  15. "  * Do not build near someone else's construction.",
  16. "Rule 5 - Do not use hacks/cheats or expliot glitches",
  17. "  * Any method of duplication",
  18. "  * Using x-ray mods or texture packs",
  19. "  * Flying without the use of a jetpack",
  20. "  * Exploiting game glitches",
  21. "  * Using a cheat client",
  22. "  * Accepting inappropriately obtained items",
  23. "Rule 6 - Absolutely no advertising of other servers!"
  24.  
  25. -- and you can add more if you want, just don't forget to put the commas (,) at the end of the lines (except for the last one)
  26. }
  27. local sSide = "top"
  28. local nTextSize = 1 -- change the text size here (from 1 to 5)
  29.  
  30. local function printCenter(mon, t)
  31. local w, h = mon.getSize()
  32. local y = math.floor((h / 2) - (#t / 2)) - 1
  33. for i, line in ipairs(t) do
  34. local x = math.floor((w / 2) - (#line / 2))
  35. mon.setCursorPos(x, y + i)
  36. mon.write(line)
  37. end
  38. end
  39.  
  40. local mon = peripheral.wrap(sSide)
  41. mon.setTextScale(nTextSize)
  42. printCenter(mon, tText)
Advertisement
Add Comment
Please, Sign In to add comment