Advertisement
suxonov

Untitled

Apr 7th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. players = {}
  2.  
  3. for name,player in pairs(tfm.get.room.playerList) do
  4. players[name] = {colorCode = {0}};
  5. end
  6.  
  7. function eventChatCommand (name, msg)
  8. if msg == 'code' then
  9. ui.addPopup(0, 2, '<p align="center">CODE:</p>', name, 288, 167, 200, true)
  10. end
  11. end
  12.  
  13. function eventPopupAnswer(id, name, answer)
  14. if id==0 then
  15. table.insert(players[name].colorCode, answer)
  16. tfm.exec.setNameColor(name, "0x"..answer)
  17. end
  18. end
  19.  
  20. system.disableChatCommandDisplay (code, yes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement