Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---Variable---
- Id = 15
- X = 1
- Y = 2
- Color1 = colors.red
- Color2 = colors.orange
- Color3 = colors.magenta
- Color4 = colors.yellow
- Color5 = colors.pink
- Color6 = colors.cyan
- Color7 = colors.purple
- Color8 = colors.green
- Color9 = colors.brown
- Color10 = colors.blue
- Color11 = colors.gray
- Color12 = colors.lightGray
- Color13 = colors.lightBlue
- Color14 = colors.lime
- Color = Color1
- VariableExtra = {Player1, Player2, Player3, Player4, Player5, Player6, Player7, Player8, Player9, Player10 }
- Variable999 = 1
- Variable888 = 1
- --------------
- ---Peripherique---
- m = peripheral.wrap("back")
- rednet.open("left")
- chat = peripheral.wrap("right")
- ------------------
- ---Programme---
- local function r(...) return shell.run(...) end
- local function w(...) return write(...) end
- m.setBackgroundColor(colors.black)
- m.clear()
- m.setTextScale(2)
- function base()
- m.setCursorPos(1,1)
- m.setTextColor(colors.green)
- m.write("Liste des Participent:")
- end
- base()
- function affi1()
- m.setTextColor(Color)
- m.setCursorPos(X,Y)
- m.write(message)
- Y = Y + 1
- if(Y == 13)then
- X = X + 10
- Y = 2
- end
- if(Color == Color14)then
- Color = "Color1"
- end
- if(Color == Color13)then
- Color = Color14
- end
- if(Color == Color12)then
- Color = Color13
- end
- if(Color == Color11)then
- Color = Color12
- end
- if(Color == Color10)then
- Color = Color11
- end
- if(Color == Color9)then
- Color = Color10
- end
- if(Color == Color8)then
- Color = Color9
- end
- if(Color == Color7)then
- Color = Color8
- end
- if(Color == Color6)then
- Color = Color7
- end
- if(Color == Color5)then
- Color = Color6
- end
- if(Color == Color4)then
- Color = Color5
- end
- if(Color == Color3)then
- Color = Color4
- end
- if(Color == Color2)then
- Color = Color3
- end
- if(Color == Color1)then
- Color = Color2
- end
- if(Color == "Color1")then
- Color = Color1
- end
- end
- function Stockage()
- if(VariableExtra[1] == message or VariableExtra[2] == message or VariableExtra[3] == message or VariableExtra[4] == message or VariableExtra[5] == message or VariableExtra[6] == message or VariableExtra[7] == message or VariableExtra[8] == message or VariableExtra[9] == message or VariableExtra[10] == message)then
- print("Non")
- else
- affi1()
- VariableExtra[Variable999] = message
- Variable999 = Variable999 + 1
- chat.say(message.." c'est inscrit")
- end
- end
- function ChatBox()
- chat.say("Ses au tour de "..VariableExtra[Variable888])
- Variable888 = Variable888 + 1
- if(Variable == 10)then
- Variable = 1
- end
- end
- while true do
- if(redstone.getInput("top") == true)then
- ChatBox()
- end
- id, message = rednet.receive()
- Stockage()
- sleep(0.1)
- end
- ---------------
- ----=Autor=----
- --By Zaidal86
- ----=-----=----
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement