Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- r = peripheral.wrap("right")
- name = "\1672\167lBat\167r\167abot\167r"
- while true do
- event, player, command = os.pullEvent("command")
- if player == "Batponney" then
- if command[1] == "Maindoor" then
- if command[2] == "open" then
- rs.setOutput("right",true)
- rs.setOutput("left",true)
- rs.setOutput("top",true)
- r.say("Porte principal ouverte !",-1,true,name)
- elseif command[2] == "close" then
- rs.setOutput("right", false)
- rs.setOutput("left", false)
- rs.setOutput("top", false)
- r.say("Porte principal ferme !",-1,true,name)
- else
- r.say("commande incomprise !",-1,true,name)
- end
- end
- elseif player ~= "Batponney" then
- r.say(player.." Vous n'etes pas autorise utilise les commandes",-1,true,name)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement