Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- players = {}
- for name,player in pairs(tfm.get.room.playerList) do
- players[name] = {colorCode = {0}};
- end
- function eventChatCommand (name, msg)
- if msg == 'code' then
- ui.addPopup(0, 2, '<p align="center">CODE:</p>', name, 288, 167, 200, true)
- end
- end
- function eventPopupAnswer(id, name, answer)
- if id==0 then
- table.insert(players[name].colorCode, answer)
- tfm.exec.setNameColor(name, "0x"..answer)
- end
- end
- system.disableChatCommandDisplay (code, yes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement