Eshka

Untitled

Jan 7th, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function eventPlayerDied(name)
  2. local i=0
  3. local n
  4. for pname,player in pairs(tfm.get.room.playerList) do
  5. if not player.isDead then
  6. i=i+1
  7. n=pname
  8. end
  9. end
  10. if i==1 then
  11. tfm.exec.giveCheese(n)
  12. tfm.exec.playerVictory(n)
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment