Advertisement
bapereira

Matar os jogadores clicando neles

Oct 15th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. --[[
  2. Project's author: Nettoork#0000
  3. ]]--
  4.  
  5. function eventNewPlayer(name)
  6. system.bindMouse(name, true)
  7. end
  8.  
  9. eventMouse = function(name, x, y)
  10. for player, info in next, tfm.get.room.playerList do
  11. if x >= info.x - 18 and x <= info.x + 18 and y >= info.y - 19 and y <= info.y + 19 then
  12. tfm.exec.killPlayer(player)
  13. if name == player then
  14. ui.addTextArea(1,"<B><p align='center'><R>[Killer]</R> <D>O jogador <V>"..player.."</V> se matou.", nil, 5, 380, 790, 0, 1, 1, 0.5, true)
  15. else
  16. ui.addTextArea(1,"<B><p align='center'><R>[Killer]</R> <D>O jogador <V>"..player.."</V> foi assasinado por <J>"..name.."</J>.", nil, 5, 380, 790, 0, 1, 1, 0.5, true)
  17. end
  18. end
  19. end
  20. end
  21.  
  22. table.foreach(tfm.get.room.playerList, ev
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement