Advertisement
Dudugz-Contistente

Untitled

Sep 21st, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. particles={}
  2. data={}
  3.  
  4. adm = "Contistente"
  5.  
  6. function eventLoop()
  7. for i,v in pairs(particles) do
  8. tfm.exec.displayParticle (v.id, v.x, v.y)
  9. end
  10. end
  11.  
  12. function eventMouse(name,x,y)
  13. table.insert(particles,{id=data[name],x=x,y=y})
  14. end
  15.  
  16.  
  17. function split(t,s)
  18. local a={}
  19. for i,v in string.gmatch(t,string.format("[^%s]+",s or "%s")) do
  20. table.insert(a,i)
  21. end
  22. return a
  23. end
  24.  
  25. function eventChatMessage(name,msg)
  26. msg=split(msg," ")
  27.  
  28. if msg[1] == "p" and msg[2] then
  29. data[name]=tonumber(msg[2])
  30. end
  31.  
  32. if msg[1] == "clear" and name == adm then
  33. particles={}
  34. end
  35. end
  36.  
  37. table.foreach(tfm.get.room.playerList,function(k,v) data[k]=9 system.bindMouse(k,true) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement