Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admin = "Sagazgamer"
- ---Rotação de mapa ---
- tfm.exec.disableAutoNewGame(true);
- mapas={"0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99","100","6266159"}
- function nextRound()
- tfm.exec.newGame(mapas[math.random(#mapas)]);
- tfm.exec.setUIMapName("<J>#Especial de Natal - <ROSE> Emos s2</j>")
- tfm.exec.snow()
- end
- function eventNewGame()
- vivo=0
- for name,player in pairs(tfm.get.room.playerList) do
- vivo=vivo+1
- end
- end
- function eventPlayerDied(name)
- vivo=vivo-1
- end
- function eventPlayerWon(name)
- vivo=vivo-1
- end
- function eventLoop(tempoPassado, tempoFaltando)
- if vivo == 0 or tempoFaltando < 1000 then
- nextRound();
- end
- end
- nextRound();
- for p in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(p, 69, true, true)
- end
- time = os.time() + 2500
- function eventKeyboard(p, keyCode, down, x, y)
- if keyCode == 69 then
- if os.time() > time then
- if tfm.get.room.playerList[p].isFacingRight == true then
- time = os.time() + 2500
- tfm.exec.addShamanObject(34,x+20,y,true, 10, -5)
- else
- tfm.exec.addShamanObject(34,x-20,y,true,-10, -5)
- time = os.time() + 2500
- end
- end
- end
- end
- ui.addTextArea(2,"<a href='event:natal'>Evento</a>",admin,5,25,44,20,nil,0xBabd2f,0.7,true)
- function chooseHouse(event)
- if event=="natal" then
- tfm.exec.newGame([[@6266159]])
- tfm.exec.setUIMapName("<J>#Especial de Natal - <ROSE> Emos s2</j>")
- end
- end
- function eventTextAreaCallback(id,playerName,event)
- if playerName==tostring(admin) then
- chooseHouse(event)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement