Advertisement
Tectoon

[TFM] Mata o rato com CTRL

May 4th, 2015
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. data={}
  2.  
  3. function eventNewPlayer(p)
  4. nD={
  5.         ["time"]=os.time();
  6. };
  7. data[p]=nD;
  8. end
  9.  
  10. for i in pairs(tfm.get.room.playerList) do
  11. tfm.exec.bindKeyboard(i,17,false,true)
  12. eventNewPlayer(i)
  13. end
  14.  
  15. function eventKeyboard(player,key,down,x,y)
  16. for i,v in pairs(tfm.get.room.playerList) do
  17. if x > v.x - 20 and x < v.x + 20 and y > v.y - 20 and y < v.y + 20 and i ~= player and not tfm.get.room.playerList[player].isDead and not v.isDead and data[player].time < os.time()-1000 then
  18. data[player].time=os.time();
  19. --m.exec.addShamanObject(54,v.x,v.y,0,0,false)
  20. tfm.exec.killPlayer(i)
  21. end
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement