Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- IDEAL PARA O FUNCIONAMENTO DO SCRIPT
- tfm.exec.disableAfkDeath(true)
- ui.addPopup(0, 0, "Bem vindo ao <b>Extreme Survivor</b>!", nil, 267, 169, 263, true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoScore(true)
- tfm.exec.setPlayerScore(nil, 0, false)
- mapas={[[@7054258]],[[@7054434]],[[@7054445]],[[@7054570]],[[@7054576]],[[@7054590]],[[@7054609]],[[@7054611]],[[@7055079]]};
- tfm.exec.newGame(mapas[math.random(#mapas)]);
- function eventNewPlayer(player)
- ui.addPopup(0, 0, "Bem vindo ao <b>Extreme Survivor</b>!<br>Espere a partida acabar para você jogar!", player, 267, 169, 263, true)
- end
- souris = {}
- for n,p in pairs(tfm.get.room.playerList) do
- table.insert(souris,n)
- end
- function eventLoop(currentTime, timeRemaining)
- tfm.exec.addShamanObject(17, 100, 100, 140, 50, 50, false)
- tfm.exec.respawnPlayer(player)
- end
- function eventNewGame()
- tfm.exec.newGame(mapas[math.random(#mapas)]);
- end
- function eventPlayerWon(playerName, timeElapsed, timeElapsedSinceRespawn)
- print(playerName.." foi para a toca em "..(timeElapsed/1000).." segundos.")
- tfm.exec.setPlayerScore(playerName, 5, true)
- end
- function eventChatCommand(nome, cmd)
- if cmd=="novomapa" then
- tfm.exec.newGame(mapas[math.random(#mapas)]);
- end
- end
- function eventPlayerDied(player)
- tfm.exec.respawnPlayer(player)
- end
- -- Esconder Comandos
- system.disableChatCommandDisplay("novomapa")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement