Advertisement
Tectoon

[TFM] Fly com Time

Sep 24th, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. tfm.exec.disableAutoShaman(true)
  2. for n in pairs (tfm.get.room.playerList) do
  3.     for i,key in ipairs({string.byte('Barra de Espaço'),32,17,38,90}) do      
  4.         tfm.exec.bindKeyboard(n,key,true,true)
  5.     end
  6. end
  7. canJump = true
  8. time = os.time() + 2000
  9. function eventKeyboard(n,key)
  10.     if canJump==true then
  11. if key==string.byte('Barra de Espaço') or key==32 or key==32 then
  12. if os.time() > time then
  13.         time = os.time() + 2000
  14.         tfm.exec.movePlayer(n, 0, 0, false, 0, -70, false)
  15.     end
  16. end
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement