Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- img = {"fbASScD.png",
- x={5,-5,-15},
- y=-30}
- players = {}
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.newGame(0)
- for name in pairs(tfm.get.room.playerList) do
- players[name]={}
- players[name].life = 3
- for i=1,3 do
- tfm.exec.addImage(img[1],"$"..name,img.x[i],img.y)
- end
- end
- function eventPlayerRespawn(name)
- if players[name].life ~= 0 then
- for i=1,players[name].life do
- tfm.exec.addImage(img[1],"$"..name,img.x[i],img.y)
- end
- end
- end
- function eventPlayerDied(name)
- if players[name].life ~= 1 then
- players[name].life = players[name].life - 1
- tfm.exec.respawnPlayer(name)
- else
- tfm.exec.chatMessage("<R>You ran out of lives!", name)
- end
- end
Add Comment
Please, Sign In to add comment