Advertisement
KroneR_1337

Untitled

Apr 25th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. local component = require("component")
  2. local computer = require("computer")
  3. local term = require("term")
  4. local cb = component.chat_box
  5. local c = cb.say
  6. local T = 2
  7. local sl = os.sleep
  8. cb.setName("§fL§7")
  9.  
  10. print("Введите ник: ")
  11. nick = io.read()
  12. local NAME = ("§7" .. nick .. "§f: ")
  13. print("Введите префикс : Gold[G], Admin[A], Moder[M], Deluxe[D], Grand[Gr], Пидор[P]")
  14. don = io.read()
  15. print("Цвет текста: Cиний[1], Красный[2], Желтый[3], Зеленый[4], Розовый[5], Голубой[6]")
  16. p = io.read()
  17.  
  18. if don == "G" then
  19. don = (" §8[§6Gold§8] ")
  20. elseif don == "A" then
  21. don = (" §8[§cАдмин§8] ")
  22. elseif don == "M" then
  23. don = (" §8[§4Модератор§8] ")
  24. elseif don == "D" then
  25. don = (" §8[§5Deluxe§8] ")
  26. elseif don == "Gr" then
  27. don = (" §8[§aGrand§8] ")
  28. elseif don == "P" then
  29. don = (" §8[§5Пидор§8] ")
  30. elseif don == "S" then
  31. don = (" §8[§bСт.Модератор§8] ")
  32. end
  33.  
  34.  
  35.  
  36. term.clear()
  37. while true do
  38. print("Текст: ")
  39. b = io.read()
  40. if p == "1" then
  41. c(don .. NAME .. "§1" .. b)
  42. elseif p == "2" then
  43. c(don .. NAME .. "§c" .. b)
  44. elseif p == "3" then
  45. c(don .. NAME .. "§e" .. b)
  46. elseif p == "4" then
  47. c(don .. NAME .. "§a" .. b)
  48. elseif p == "5" then
  49. c(don .. NAME .. "§d" .. b)
  50. elseif p == "6" then
  51. c(don .. NAME .. "§b" .. b)
  52. end
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement