Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- by Dream007
- 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)
- local d = 1
- function first()
- print('Ожидание игрока...')
- vremya = sky.time()
- print('Запущенна в ' ..vremya)
- rRead()
- near = radar.getPlayers(4)
- i = 1
- nick = near[i].name
- price = 450
- count = 1
- id = ('1260:7')
- cb.setName('§6G§7')
- -- cb.say('§8[§2/warp stenka§8]: §eТретье место:§5 ' ..nick)
- -- cb.say('§8[§2/warp stenka§8]: §eОн получает награду: §4Панель 8-го лвл')
- sky.com("give " .. nick .. " " .. id .. " " .. count)
- timex = sky.time()
- print('Приз выдан в ' ..timex)
- d = d - 1
- end
- function rRead()
- while d > 0 do
- getRead = rs.getInput(1)
- if getRead >= 1 then
- break
- end
- end
- end
- while d > 0 do
- first()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement