Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ids={}
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name,32,true,true)
- ids[name]={}
- end
- function eventKeyboard(name,key,down,x,y)
- if key==32 and not tfm.get.room.playerList[name].isDead then
- id=tfm.exec.addShamanObject(59,x,y+10)
- if ids[name][1] then
- tfm.exec.removeObject(ids[name][1])
- table.remove(ids[name],1)
- end
- end
- table.insert(ids[name], id)
- end
Advertisement
Add Comment
Please, Sign In to add comment