Advertisement
Nightdavisao

[TFM Script Lua] Extreme Survivor V1.0 Final

Feb 17th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.37 KB | None | 0 0
  1. -- IDEAL PARA O FUNCIONAMENTO DO SCRIPT
  2. tfm.exec.disableAfkDeath(true)
  3. ui.addPopup(0, 0, "Bem vindo ao <b>Extreme Survivor</b>!", nil, 267, 169, 263, true)
  4. tfm.exec.disableAutoShaman(true)
  5. tfm.exec.disableAutoScore(true)
  6. tfm.exec.setPlayerScore(nil, 0, false)
  7. mapas={[[@7054258]],[[@7054434]],[[@7054445]],[[@7054570]],[[@7054576]],[[@7054590]],[[@7054609]],[[@7054611]],[[@7055079]]};
  8. tfm.exec.newGame(mapas[math.random(#mapas)]);
  9.  
  10. function eventNewPlayer(player)
  11. ui.addPopup(0, 0, "Bem vindo ao <b>Extreme Survivor</b>!<br>Espere a partida acabar para você jogar!", player, 267, 169, 263, true)
  12. end
  13.  
  14. souris = {}
  15. for n,p in pairs(tfm.get.room.playerList) do
  16.         table.insert(souris,n)
  17. end
  18.  
  19. function eventLoop(currentTime, timeRemaining)
  20. tfm.exec.addShamanObject(17, 100, 100, 140, 50, 50, false)
  21. tfm.exec.respawnPlayer(player)
  22. end
  23.  
  24. function eventNewGame()
  25. tfm.exec.newGame(mapas[math.random(#mapas)]);
  26. end
  27.  
  28. function eventPlayerWon(playerName, timeElapsed, timeElapsedSinceRespawn)
  29. print(playerName.." foi para a toca em "..(timeElapsed/1000).." segundos.")
  30. tfm.exec.setPlayerScore(playerName, 5, true)
  31. end
  32. function eventChatCommand(nome, cmd)
  33. if cmd=="novomapa" then
  34. tfm.exec.newGame(mapas[math.random(#mapas)]);
  35. end
  36. end
  37. function eventPlayerDied(player)
  38. tfm.exec.respawnPlayer(player)
  39. end
  40. -- Esconder Comandos
  41. system.disableChatCommandDisplay("novomapa")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement