Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(name)
- end
- function pythag(x1,y1,x2,y2)
- return math.sqrt((y2-y1)^2+(x2-x1)^2)
- end
- function eventMouse(name,x,y)
- for k,p in pairs(tfm.get.room.playerList) do
- if pythag(x,y,p.x,p.y) <= 15 and p.score < tfm.get.room.playerList[name].score then
- tfm.exec.killPlayer(k)
- tfm.exec.setPlayerScore(k, 0, false)
- tfm.exec.setPlayerScore(name, p.score, true)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement