Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.setGameTime (6000, verdadero)
- tfm.exec.disableAutoShaman (verdadero)
- tfm.exec.disableAutoNewGame (verdadero)
- tfm.exec.setUIMapName ("¡El piso es lava!")
- tfm.exec.newGame (7214563)
- ilosc = 10
- tfm.exec.addPhysicObject (1,800,387, {
- type = 6,
- restitution = 0.2,
- friction = 0.3,
- width = 1600,
- height = 37,
- groundCollision = true,
- miceCollision = true
- })
- to = 0
- czas = 10
- score = 0
- function eventLoop (timeRemaining, timeRemaining)
- if (to == 2) then
- czas = czas-1
- score = score + 1
- if (score == 10) luego
- por nombre, jugador en parejas (tfm.get.room.playerList) do
- tfm.exec .giveMeep (nombre)
- final
- terminar
- si (czas == 3) entonces
- x = math.random (100,1500)
- xx = math.random (100,1500)
- idd = math.random (1,7)
- id = math.random (1,7)
- usun = tfm.exec.addShamanObject (id, x, 350,0,0,0, falso)
- usunn = tfm.exec.addShamanObject (idd, xx, 350,0,0,0, falso)
- finaliza
- si (czas == - 3) luego
- tfm.exec.removeObject (usun)
- tfm.exec.removeObject (usunn)
- ilosc = ilosc - 1
- czas = ilosc
- tfm.exec.addPhysicObject (1,800,387, {
- type = 6,
- restitution = 0.2,
- friction = 0.3,
- width = 1600,
- height = 37,
- groundCollision = true,
- miceCollision = true
- })
- tfm.exec.removePhysicObject (2)
- end
- if (czas <= 0)
- tfm.exec.addPhysicObject (1,800,387, {
- type = 6,
- restitution = 0.2,
- friction = 0.3,
- width = 1600,
- height = 37,
- groundCollision = true,
- miceCollision = false
- })
- tfm.exec. addPhysicObject (2,800,387, {
- type = 3,
- restitution = 0.2,
- friction = 0.3,
- width = 1600,
- height = 37,
- groundCollision = true,
- miceCollision = false
- })
- ui.addTextArea (7, "<p align = 'center'> < font size = '50 'color =' # FF0000 '> EL SUELO ES LAVA </font> </p> ", nulo, 50, 125, 700, 119, 0x324650, 0x000000, 0, verdadero, verdadero)
- más
- ui.addTextArea (7, "<p align = 'center'> <font size = '90 '>" .. czas .. "</font> </p>", nulo, 50, 125, 700, 119, 0x324650, 0x000000, 0, verdadero, verdadero)
- ui.addTextArea (5, "", nulo, 50, 250, 700, 119, 0x324650, 0x000000, 0, verdadero, verdadero)
- final
- a = 0
- más
- a = a + 1
- final
- if (ilosc == 4) entonces
- ilosc = 10 función
- final
- final
- eventPlayerDied (playerName)
- tfm.exec.setUIShamanName (playerName .. "ha muerto")
- tfm.exec.setPlayerScore (playerName, -2, verdadero) función
- final
- eventChatCommand ( playerName, message)
- if (message == "reset") entonces
- tfm.exec.setPlayerScore (playerName,0)
- end
- end
- liczba = 0
- tablica = {}
- zycie = {}
- e = 0
- para nombre, jugador en parejas (tfm.get.room.playerList) do
- tablica [name] = 0
- e = e + 1
- print (name)
- end
- print (e)
- function eventPlayerDied (n)
- tablica [n] = 1
- zycie [n ] = 0
- e = e-1
- print (e)
- para el nombre, jugador en parejas (tfm.get.room.playerList) hacer
- if (tablica [name] == 0) luego
- liczba = liczba + 1
- wyg = name
- end
- end
- function eventPlayerLeft (n)
- tablica [n] = 1
- zycie [n] = 0
- e = e-1
- print (e)
- para el nombre, jugador en parejas (tfm.get.room.playerList) hacer
- if (tablica [name] == 0 ) luego
- liczba = liczba + 1
- wyg = nombre
- fin
- fin
- fin
- if (liczba == 1) luego
- imprime (wyg .. "wygral")
- tfm.exec.giveCheese (wyg)
- ui.addTextArea (5, "<p align = 'center'> <font size = '50 'color =' # FFFF00 '> ".. wyg .." ha ganado el juego </font> </p> ", nulo, 50, 250, 700, 500, 0x324650, 0x000000, 0, verdadero, verdadero)
- tfm.exec.playerVictory (wyg)
- tfm.exec.newGame (7214563)
- tfm.exec.addPhysicObject (1,800,387, {
- type = 6,
- restitution = 0.2,
- friction = 0.3,
- width = 1600,
- height = 37,
- groundCollision = true,
- miceCollision = true
- })
- a = 0
- czas = 10
- puntaje = 0
- e = 0
- tablica = {}
- ilosc = 10
- tfm.exec.setPlayerScore (wyg, score, true)
- para el nombre,jugador en parejas (tfm.get.room.playerList) hacer
- tablica [name] = 0
- zycie [name] = 1
- e = e + 1
- end
- wyg = ""
- liczba = 0
- print (e)
- else
- liczba = 0
- end
- end
- function eventChatCommand (playerName, message)
- if (message == "res" ) luego
- liczba = 0
- e = 0
- tablica = {}
- para el nombre, jugador en parejas (tfm.get.room.playerList) do
- tablica [name] = 0
- e = e + 1
- end
- wyg = ""
- print (e)
- end
- end
- function eventPlayerRespawn (nn)
- if (zycie [nn] == 0) then
- tfm.exec.setVampirePlayer (nn)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement