Advertisement
Nightdavisao

[TFM Script Lua] Extreme Survivor V1.0.2

Feb 17th, 2017
1,353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.51 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]],[[@7062305]],[[@7062369]]};
  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. if currentTime<=1000 then
  23. tfm.exec.addShamanObject(17, 100, 100, 140, 50, 50, false)
  24. tfm.exec.respawnPlayer(player)
  25. end
  26.  
  27. function eventNewGame()
  28. tfm.exec.newGame(mapas[math.random(#mapas)]);
  29. end
  30.  
  31. function eventPlayerWon(playerName, timeElapsed, timeElapsedSinceRespawn)
  32. print(playerName.." foi para a toca em "..(timeElapsed/1000).." segundos.")
  33. tfm.exec.setPlayerScore(playerName, 5, true)
  34. end
  35. function eventChatCommand(admin, cmd)
  36. if cmd=="novomapa" then
  37. tfm.exec.newGame(mapas[math.random(#mapas)]);
  38. end
  39. end
  40. function eventPlayerDied(player)
  41. tfm.exec.respawnPlayer(player)
  42. end
  43. -- Esconder Comandos
  44. system.disableChatCommandDisplay("novomapa")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement