Advertisement
KananGamer

[TFM-LUA] Noob ou Poderoso?

Mar 19th, 2017
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. --[[
  2.     Autor: Nettoork
  3. ]]--
  4.  
  5. do
  6.     local _, nickname = pcall(nil)
  7.     author = string.match(nickname, "(.-)%.")
  8. end
  9. local id = 0
  10. eventMouse = function(name, x, y)
  11.     local message, color = "0x"..math.random(000000,999999), nil
  12.     if name == author then
  13.         message = "Eu, "..name..", sou o mais poderoso da sala!"
  14.     else
  15.         message = "Eu, "..name..", sou apenas um noob ;("
  16.     end
  17.     id = id +1
  18.     ui.addTextArea(id, message, nil, x, y, 0, 30, color, color, 0.5, false)
  19. end
  20.  
  21. eventNewPlayer = function(name)
  22.     system.bindMouse(name, true)
  23. end
  24. table.foreach(tfm.get.room.playerList, eventNewPlayer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement