Ir para conteúdo

Featured Replies

Postado

Tenho 1 Castle 24h mas ele Só avisa 1x por jogador

O script da tile

 

function onStepIn(cid, item, position, fromPosition)





local n, g = getCreatureName(cid), getPlayerGuildName(cid)



if getPlayerGuildId(cid) == 0 then

doPlayerSendCancel(cid, "[AlphaCastle] Apenas Jogadores Com Guild Pode Entrar Nessa Zona.")

doTeleportThing(cid, fromPosition, false) return true

end



if getPlayerStorageValue(cid, 9952) - os.time() < 1 then





setPlayerStorageValue(cid, 9952, os.time() + 250 * 1000)

broadcastMessage(n .." Está invadindo o [AlphaCastle24hrs],para a guild [" .. g .. "].", MESSAGE_STATUS_WARNING)



end

return true

end

 

 

 

 

 

 

Postado

aqui

function onStepIn(cid, item, position, fromPosition)



local n, g = getCreatureName(cid), getPlayerGuildName(cid)



if getPlayerGuildId(cid) == 0 then

doPlayerSendCancel(cid, "[AlphaCastle] Apenas Jogadores Com Guild Pode Entrar Nessa Zona.")

doTeleportThing(cid, fromPosition, false) return true

end



if getPlayerStorageValue(cid, 9952) - os.time() < 1 then





broadcastMessage(n .." Está invadindo o [AlphaCastle24hrs],para a guild [" .. g .. "].", MESSAGE_STATUS_WARNING)



end

return true

end
Postado
  • Autor

 

aqui

function onStepIn(cid, item, position, fromPosition)



local n, g = getCreatureName(cid), getPlayerGuildName(cid)



if getPlayerGuildId(cid) == 0 then

doPlayerSendCancel(cid, "[AlphaCastle] Apenas Jogadores Com Guild Pode Entrar Nessa Zona.")

doTeleportThing(cid, fromPosition, false) return true

end



if getPlayerStorageValue(cid, 9952) - os.time() < 1 then





broadcastMessage(n .." Está invadindo o [AlphaCastle24hrs],para a guild [" .. g .. "].", MESSAGE_STATUS_WARNING)



end

return true

end

 

Oque você mudou?

up

upo

 

 

 

 

 

 

  • 1 month later...
Postado
function onStepIn(cid, item, position, fromPosition)
local n, g, delay = getCreatureName(cid), getPlayerGuildName(cid), 5 -- Delay para informar que o player está invadindo.

    if getPlayerGuildId(cid) == 0 then
        doPlayerSendCancel(cid, "[AlphaCastle] Apenas membros de guild podem entrar nesta área.")
        doTeleportThing(cid, fromPosition, false) return true
    end

    if getPlayerStorageValue(cid, 9952) - os.time() < 1 then
        setPlayerStorageValue(cid, 9952, os.time() + 5)
        broadcastMessage(n .." Está invadindo o [AlphaCastle24hrs], para a guild [" .. g .. "].", MESSAGE_STATUS_WARNING)
    end
   return true
end

Agora irá mostrar a cada 5 segundos por player, caso queira alterar, é só editar na variável.

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo