Safwanrockz

Untitled

Jan 30th, 2014
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. ids={}
  2. for name,player in pairs(tfm.get.room.playerList) do
  3.      tfm.exec.bindKeyboard(name,32,true,true)
  4.      ids[name]={}
  5. end
  6. function eventKeyboard(name,key,down,x,y)
  7.      if key==32 and not tfm.get.room.playerList[name].isDead then
  8.           id=tfm.exec.addShamanObject(59,x,y+10)
  9.           if ids[name][1] then
  10.                tfm.exec.removeObject(ids[name][1])
  11.                table.remove(ids[name],1)
  12.           end
  13.      end
  14.      table.insert(ids[name], id)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment