Safwanrockz

Untitled

Dec 1st, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. points={}
  2. for name,player in pairs(tfm.get.room.playerList) do
  3.      system.bindMouse(name, true)
  4.      points[name]=5
  5. end
  6.  
  7. function eventPlayerWon(name)
  8.      points[name]=10
  9.      print("You have gathered 10 points! Your current points are"..points[name])
  10. end
  11.  
  12. function eventMouse(name,x,y)
  13.      if points[name]~=0 then
  14.          tfm.exec.addShamanObject(24,x,y)
  15.              points[name] = points[name] - 1
  16.          print("You have used one spirit! You have "..points[name].." points left!")
  17.      end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment