Advertisement
Nightdavisao

[TFM Script Lua] Extreme Survivor V1.0.1

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