Script
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Script de Meep 1000

Ir para baixo

Script de Meep 1000 Empty Script de Meep 1000

Mensagem por Admin Qua Mar 21, 2018 12:21 pm

tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAfkDeath(true)
tfm.exec.disableMinimalistMode(true)
tfm.exec.disablePhysicalConsumables(true)
tfm.exec.disableAutoScore(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableDebugCommand (true)
tfm.exec.disableWatchCommand (true)
tfm.exec.disableMortCommand (true)
tfm.exec.snow (5000, snowballPower)

function eventChatCommand (name, message)
if message=="help" then
ui.addPopup(0, 3, "Bem-vindo ao mini game meep 1000 fazer espaço () para fazer o meep explosão futura e espaço () para habilitar o meep se a barra não aparecer.",name, 210, 200, 200)
tfm.exec.setNameColor (playerName, color)
elseif message=="map" then
ui.addPopup(2, 5, "Aqui estão todos os mapas criados para o mini game:@7385191, @7385418, @7385524, @7385539, @7385544, @7385562, @7386127, @7386437, @7386745 .",name, 210, 200, 200)

end
end
listeCartes = {"@7385191", "@7385418", "@7385524", "@7385539", "@7385544", "@7385562", "@7386127", "@7386437", "@7386745"}
players = {}

function reload()
random_map = listeCartes[math.random(#listeCartes)]
tfm.exec.newGame(random_map)
tfm.exec.setUIMapName("Meep 1000 "..random_map)
tfm.exec.setGameTime(30, init,true)
ui.addTextArea(0, "Sobreviva e jogue Meep 1000 e sobreviva à guerra dos Meeps. Boa sorte, pressione a tecla espaço!</a> ", nil, 15, 45)
ui.addTextArea(2, "Aqui estão os comandos do mini game !help !map. </a> ", nil, 2, 380)
end

function eventNewGame(name)
for player in pairs(tfm.get.room.playerList) do
tfm.exec.giveMeep(player)
end
print("Uma nova partida do MEEP 1000 acaba de começar!")
end

function eventNewPlayer(playerName)
players[playerName] = {}
players[playerName].time = 7
tfm.exec.bindKeyboard(playerName,32,true,true)

end
function eventPopupAnswer(popupId, playerName, answer)
print(playerName .." respondeu o popup não".. popupId .." : vai atacar o rato agora mesmo MOUSE MEEPER!"..answer)
end

function eventTextAreaCallback(textAreaId, playerName, callback)
print(playerName .. " acionou o texto do evento " .. callback .. "'")
end

function eventLoop(currentTime, timeRemaining)
if timeRemaining < 1 then
reload()
end
for player in next, tfm.get.room.playerList do
if players[player].time <= 6 then
players[player].time = players[player].time - 1
if players[player].time <= 0 then
players[player].time = 7
end
end
end
end

function eventKeyboard(player, key, _, x, y)
if key == 32 and players[player].time == 7 then -- si c'est espace
print("explosion : ".. x .. " " .. y)
tfm.exec.explosion(x, y, 15, 210, true)
players[player].time = 0,5
end
end
reload()
for name in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)

end

Admin
Admin

Mensagens : 24
Data de inscrição : 10/07/2017

https://tfmbry.directorioforuns.com

Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos