carlu58

Matar se estiver fora do mapa

Sep 30th, 2014
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.18 KB | None | 0 0
  1. function eventLoop()
  2. for n,p in pairs(tfm.get.room.playerList) do
  3. if p.x >= 800 or p.x <= 0 or p.y >= 400 or p.y <= 0 then
  4. tfm.exec.killPlayer(n)
  5. p.x,p.y=200,300
  6. end
  7. end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment