Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- color = {}
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(name, true)
- color[name] = 0
- end
- -- Black = 0x000000
- -- Green = 0x43eb00
- -- Blue = 0x0000ff
- -- ui.showColorPicker
- id = 0
- function eventMouse(n, x, y)
- id = id + 1
- ui.addTextArea(id, "", nil, x, y, 6, 6, color[n], color[n] + 1, 1, false)
- end
- function eventChatCommand(n,cmd)
- if cmd == "clear" then
- for i=1,id do
- ui.removeTextArea(i)
- end
- id=1
- end
- if cmd == "color" then
- ui.showColorPicker(1,n,0,"Select Color")
- end
- end
- function eventColorPicked(id, name, colorr)
- color[name] = colorr
- end
Add Comment
Please, Sign In to add comment