Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local computer=require("computer")
- local event = require("event")
- local term = require("term")
- local shell = require("shell")
- local fs = require("filesystem")
- local unicode=require("unicode")
- local serial = require("serialization")
- local radar = require("component").radar
- local cb = require("component").chat_box
- local rs = require("component").redstone
- if not component.isAvailable("opencb") then
- print("Подключите командный блок: opencb")
- os.sleep(3)
- os.exit()
- end
- if not fs.exists("/lib/sky.lua") then
- shell.execute("wget https://www.dropbox.com/s/8ak2iakw4r4y7td/sky.lua?dl=1 /lib/sky.lua")
- end
- local sky = require("sky")
- local g = component.gpu
- event.shouldInterrupt = function () return false end
- local getRead = rs.getInput(1)
- repeat
- if getRead >= 1 then
- near = radar.getPlayers(2)
- i = 1
- nick = near[i].name
- price = 500
- cb.setName('§6G§7')
- cb.say('§8[§2/warp parkur§8]: §eПервое место:§5 ' ..nick)
- cb.say('§8[§2/warp parkur§8]: §eОн получает награду §4500 §eэм')
- sky.com("money give " .. nick .. " " .. price)
- d = 2
- else
- os.sleep(0.1)
- end
- until d == 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement