Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- Versão 1.2
- --- Créditos:Brenower e Joaovictors
- --- Mapa por Luukaszika
- --- Precisa ficar em cima do livro para saber o que pode ganhar
- --- Quando player morre ele automaticamente renasce
- --- Novas palavras
- --- Quando novo player chega na partida renasce automaticamente
- --- Novidades em breve.
- --- Script
- --- Tables
- admins={"Brenower"};
- palavras={"Nada. ;D","Um milhão de reais.","5 Centavos","Que tal um boneco?","Uma fantasia dos Powers Rangens.","1000 Morangos.<br>Só que não. e.e</br>",
- "Um cheiro no cur.<br>Brinks e.e</br>","Uma bicicleta futurística.;O","10 reais","Uma calça de mendigo","Uma jaqueta jeans","Viagem para Nova York",
- "Um celular chingue linge","Um nootribook. e.e","Um netribook.","Uma viagem para a Disney.","Ver o novo bouboum.--Vixee ta perto de chegar.;D"}
- --- Começo do Script
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoScore(true)
- for player in pairs(tfm.get.room.playerList) do
- tfm.exec.setPlayerScore(player, 0, false)
- end
- tfm.exec.newGame("@4479397")
- --- Comandos
- function eventChatCommand(player, cm)
- if cm == "posição" then
- if tfm.get.room.playerList then
- if tfm.get.room.playerList[player].x then
- if tfm.get.room.playerList[player].y then
- ui.addPopup(0, 0, "Você esta no x:".. tfm.get.room.playerList[player].x.." e no y:".. tfm.get.room.playerList[player].y.."", player, 300, 175, 200)
- end
- end
- end
- end
- if cm == "oque" then
- merece = palavras[math.random(1, #palavras)]
- if tfm.get.room.playerList[player].x < 150 then
- if tfm.get.room.playerList[player].x < 185 then
- if tfm.get.room.playerList[player].score == 0 then
- ui.addPopup(0, 0, "Você vai ganhar:".. merece, player, 300, 175, 200)
- tfm.exec.setPlayerScore(player, 1, true)
- end
- end
- end
- end
- end
- --- Player morre
- function eventPlayerDied(player)
- tfm.exec.respawnPlayer(player)
- end
- --- Novo player na sala
- function eventNewPlayer(player)
- tfm.exec.respawnPlayer(player)
- end
- --- Fim do Script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement