Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local pim = component.pim
- local debug = component.debug
- local cmd = component.opencb.execute
- local term = require("term")
- local cb = component.opencb
- term.clear()
- local function checkInv(name)
- for i=1,40 do
- if pim.getStackInSlot(i)~=nil then
- return true
- end
- end
- return false
- end
- while true do
- name = pim.getInventoryName()
- if name ~= "pim" then
- print("Обнаружен игрок "..name)
- if checkInv(name) then
- debug.getPlayer(name).setPosition(612,35,766)
- cb.execute("msg " .. name .. " &6Сначала очисти свой инвентарь!")
- else
- cb.execute("fly " .. name .. " off")
- cb.execute("god " .. name .. " off")
- _,res = cb.execute("pvpadmin " .. name)
- if string.find(res,"false") then cb.execute("pvpadmin " .. name) end
- debug.getPlayer(name).setPosition(612,26,777)
- print("Игроку " .. name .. " был выключен fly и god\n")
- end
- end
- os.sleep(0.2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement