Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chatB = peripheral.wrap("right")
- local playerB = peripheral.wrap("left")
- function ChekPidor()
- local listPlayer = playerB.getOnlinePlayers()
- local playerNumber = table.getn(listPlayer)
- chatB.sendMessage("O vas aj: ".. playerNumber , "SHODAN")
- sleep(1)
- chatB.sendMessage("Taaaak kto je stanet pidorom?!", "SHODAN")
- local d = math.random(1, playerNumber)
- sleep(3)
- chatB.sendMessage("Pidorom budet: ".. listPlayer[d], "SHODAN")
- end
- while true do
- event, username, message = os.pullEvent("chat") --By Igor
- if(message == "pidor") then
- ChekPidor()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement