Advertisement
Tectoon

[TFM] Tacar bolinha de Papel com (E)

Oct 16th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. for p in pairs(tfm.get.room.playerList) do
  2. tfm.exec.bindKeyboard(p, 69, true, true)
  3. end
  4.  
  5. time = os.time() + 2500
  6.  
  7. function eventKeyboard(p, keyCode, down, x, y)
  8. if keyCode == 69 then
  9. if os.time() > time then
  10. if tfm.get.room.playerList[p].isFacingRight == true then
  11. time = os.time() + 2500
  12. tfm.exec.addShamanObject(95,x+20,y,true, 10, -5)
  13. else
  14. tfm.exec.addShamanObject(95,x-20,y,true,-10, -5)
  15. time = os.time() + 2500
  16. end
  17. end
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement