Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function centerText(text, y, color)
- --mon.clear()
- mX = mon.getSize()
- --print(mX)
- x = ((mX/2)+1) - (math.floor(string.len(text))/2)
- mon.setCursorPos(x, y)
- mon.setTextColor(color)
- mon.write(text)
- end
- mon = peripheral.wrap("back")
- mon.setTextScale(2)
- mon.setBackgroundColor(colors.cyan
- centerText("Server Rules",1,colors.gray)
- centerText("FP Rules & Regulations",3,colors.white)
- centerText("*Taking from others is never allowed",4,colors.white)
- centerText("on our server. Even if it is unprotected.",5,colors.white)
- centerText("under the Market section",6,colors.white)
- centerText("2:Ask Chewie,for a shop! ",7, colors.white)
- centerText("If not online,MSG me!",8, colors.white)
- centerText("",11, colors. orange)
- centerText("",10, colors. orange)
- --centerText("123456789123456", 2,colors.blue)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement