Ir para conteúdo
  • Cadastre-se

[Resolvido] [Pedido] Piso com tempo


Posts Recomendados

Tapora erro meu euheuheehehhu

local events ={}

local tempo = 30 -- tempo em segundos

local pos = {x = 1, y = 1, z = 1}

function onStepIn(cid, item, pos)

doPlayerSendTextMessage(cid, 27, "Contagem iniciada, daqui " .. tempo .. " segundos você será teleportado")

events[getPlayerGUID(cid)] = addEvent(doTeleportThing, pos, tempo * 1000, cid)

return true

end 


function onStepOut(cid, item, pos)

doPlayerSendTextMessage(cid, 28, "Contagem zerada.")

stopEvent(events[getPlayerGUID(cid)])

events[getPlayerGUID(cid)] = nil

return true

end

Editado por Skyforever (veja o histórico de edições)

Retirado.

 

Skype: joaoxtibia85.

Link para o post
Compartilhar em outros sites
  • Respostas 8
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Tapora erro meu euheuheehehhu local events ={} local tempo = 30 -- tempo em segundos local pos = {x = 1, y = 1, z = 1} function onStepIn(cid, item, pos) doPlayerSendTextMessage(cid, 27, "Contagem iniciada, daqui " .. tempo .. " segundos você será teleportado") events[getPlayerGUID(cid)] = addEvent(doTeleportThing, pos, tempo * 1000, cid) return true end function onStepOut(cid, item, pos) doPlayerSendTextMessage(cid, 28, "Contagem zerada.") stopEvent(events[getPlayerGUID(ci

Depois do 1 min oque acontece? local events = {} local min = 1 -- tempo em minutos local pos = {x = 1, y = 1, z = 1} function onStepIn(cid, item, pos) doPlayerSendTextMessage(cid, 27, "Contagem iniciada, daqui " .. min .. " você será teleportado") events[getPlayerGUID(cid)] = addEvent(doTeleportThing, pos, min * 1000 * 60, cid) return true end function onStepOut(cid, item, pos) doPlayerSendTextMessage(cid, 28, "Contagem zerada.") stopEvent(events[getPlayerGUID(cid)]) retu

local events = {} local tempo = 30 -- tempo em segundos local pos = {x = 1, y = 1, z = 1} function onStepIn(cid, item, pos) doPlayerSendTextMessage(cid, 27, "Contagem iniciada, daqui " .. min .. " você será teleportado") events[getPlayerGUID(cid)] = addEvent(doTeleportThing, pos, tempo * 1000, cid) return true end function onStepOut(cid, item, pos) doPlayerSendTextMessage(cid, 28, "Contagem zerada.") stopEvent(events[getPlayerGUID(cid)]) events[getPlayerGUID(cid)] = nil return true

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Estatísticas dos Fóruns

    96844
    Tópicos
    519603
    Posts



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo