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")
- chatB.sendMessage("Pidorom budet: ".. listPlayer(math.random(0, playerNumber)) , "SHODAN")
- end
- while true do
- event, username, message = os.pullEvent("chat") -- Will be fired when someone sends a chat message
- if(message == "pidor") then
- ChekPidor()
- end
- end
Add Comment
Please, Sign In to add comment