Skiret

cloaking_PRO

Nov 29th, 2020
458
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local component = require("component")
  2. local event = require("event")
  3. local term = require("term")
  4.  
  5. local cloakingCore = component.warpdriveCloakingCore
  6. local c = component.chat_box
  7.  
  8. term.clear()
  9. function menu()
  10.   c.setName("§5Маскировщик§7§o")
  11. local s = [[§8§o§lBy §7§o§lSk§4§o§li§7§o§lret
  12. ⠄⠄⠄⣾⣿⠿⠿⠶⠿⢿⣿⣿⣿⣿⣦⣤⣄⢀⡅⢠⣾⣛⡉⠄⠄⠄⠸⢀⣿⠄
  13. ⠄⠄⢀⡋⣡⣴⣶⣶⡀⠄⠄⠙⢿⣿⣿⣿⣿⣿⣴⣿⣿⣿⢃⣤⣄⣀⣥⣿⣿⠄
  14. ⠄⠄⢸⣇⠻⣿⣿⣿⣧⣀⢀⣠⡌⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠿⠿⣿⣿⣿⠄
  15. ⠄⢀⢸⣿⣷⣤⣤⣤⣬⣙⣛⢿⣿⣿⣿⣿⣿⣿⡿⣿⣿⡍⠄⠄⢀⣤⣄⠉⠋⣰
  16. ⠄⣼⣖⣿⣿⣿⣿⣿⣿⣿⣿⣿⢿⣿⣿⣿⣿⣿⢇⣿⣿⡷⠶⠶⢿⣿⣿⠇⢀⣤
  17. ⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣽⣿⣿⣿⡇⣿⣿⣿⣿⣿⣿⣷⣶⣥⣴⣿⡗
  18. ⢀⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠄
  19. ⢸⣿⣦⣌⣛⣻⣿⣿⣧⠙⠛⠛⡭⠅⠒⠦⠭⣭⡻⣿⣿⣿⣿⣿⣿⣿⣿⡿⠃⠄
  20. ⠘⣿⣿⣿⣿⣿⣿⣿⣿⡆⠄⠄⠄⠄⠄⠄⠄⠄⠹⠈⢋⣽⣿⣿⣿⣿⣵⣾⠃⠄
  21. ⠄⠘⣿⣿⣿⣿⣿⣿⣿⣿⠄⣴⣿⣶⣄⠄⣴⣶⠄⢀⣾⣿⣿⣿⣿⣿⣿⠃⠄⠄
  22. ⠄⠄⠈⠻⣿⣿⣿⣿⣿⣿⡄⢻⣿⣿⣿⠄⣿⣿⡀⣾⣿⣿⣿⣿⣛⠛⠁⠄⠄⠄
  23. ⠄⠄⠄⠄⠈⠛⢿⣿⣿⣿⠁⠞⢿⣿⣿⡄⢿⣿⡇⣸⣿⣿⠿⠛⠁⠄⠄⠄⠄⠄
  24. ⠄⠄⠄⠄⠄⠄⠄⠉⠻⣿⣿⣾⣦⡙⠻⣷⣾⣿⠃⠿⠋⠁⠄⠄⠄⠄⠄⢀⣠⣴
  25. ⣿⣿⣿⣶⣶⣮⣥⣒⠲⢮⣝⡿⣿⣿⡆⣿⡿⠃⠄⠄⠄⠄⠄⠄⠄⣠⣴⣿⣿⣿
  26. §eДоступные команды:
  27. §a§lcloak1§7, §2§lcloak2§7, §c§luncloak
  28. §4§lQ§7/§4§lq §7- §eВыход из программы]]
  29. c.say(s)
  30. end
  31.  
  32. menu()
  33.     while true do
  34. local e = {event.pull()}
  35.   if e[1] == "chat_message" then
  36.     local ply_name = e[3]
  37.     local message = string.upper (e[4])
  38. if message == "~CLOAK1" and ply_name == "Skiret" or
  39.    message == "CLOAK1" and ply_name == "kotofey51" or
  40.    message == "~CLOAK1" and ply_name == "yarik1415" then
  41.   cloakingCore.tier(1)
  42.   cloakingCore.enable(true)
  43.     c.setName("§a§lcloak1§7§o")
  44.     c.say("§eМаскировка 1 уровня §a§lвключена")
  45. elseif message == "~CLOAK2" and ply_name == "Skiret" or
  46.        message == "CLOAK2" and ply_name == "kotofey51" or
  47.        message == "~CLOAK2" and ply_name == "yarik1415" then
  48.   cloakingCore.tier(2)
  49.   cloakingCore.enable(true)
  50.     c.setName("§2§lcloak2§7§o")
  51.     c.say("§eМаскировка 2 уровня §2§lвключена")
  52. elseif message == "~UNCLOAK" and ply_name == "Skiret" or
  53.        message == "UNCLOAK" and ply_name == "kotofey51" or
  54.        message == "~UNCLOAK" and ply_name == "yarik1415" then
  55.   cloakingCore.enable(false)
  56.     c.setName("§c§luncloak§7§o")
  57.     c.say("§eМаскировка §c§lотключена")
  58. elseif message == "~Q" and ply_name == "Skiret" then
  59.     print("Программа cloaking_PRO остановлена")
  60.     do return end
  61. end
  62. end
  63. end
RAW Paste Data