Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p={}
- function eventNewPlayer(name)
- p[name]={
- tempo = os.time()
- }
- system.bindKeyboard(name,32,true,true)
- end
- for all in pairs(tfm.get.room.playerList) do
- eventNewPlayer(all)
- end
- function eventKeyboard(name,key,down,x,y)
- if key == 32 and p[name].tempo < os.time()-1200 then
- tfm.exec.movePlayer(name, 0, 0, false, 0, -60, true)
- p[name].tempo = os.time();
- tfm.exec.displayParticle(36,x+10,y,0,-10)
- end
- end
- tfm.exec.newGame(math.random(0,144))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement