Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- particles={}
- data={}
- adm = "Contistente"
- function eventLoop()
- for i,v in pairs(particles) do
- tfm.exec.displayParticle (v.id, v.x, v.y)
- end
- end
- function eventMouse(name,x,y)
- table.insert(particles,{id=data[name],x=x,y=y})
- end
- function split(t,s)
- local a={}
- for i,v in string.gmatch(t,string.format("[^%s]+",s or "%s")) do
- table.insert(a,i)
- end
- return a
- end
- function eventChatMessage(name,msg)
- msg=split(msg," ")
- if msg[1] == "p" and msg[2] then
- data[name]=tonumber(msg[2])
- end
- if msg[1] == "clear" and name == adm then
- particles={}
- end
- end
- 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