Salve!
Você gostaria que avisasse de 5 em 5 segundos até quando?
Nao tenho certeza.
Mas tenta isso, ve se da certo
function onStepIn(cid, item, position, fromPosition)
local n,
g = getCreatureName(cid), getPlayerGuildName(cid)
if getPlayerGuildId(cid) == 0 then
doPlayerSendCancel(
cid,
"[Castle24Hrs] Apenas jogadores com guild e acima de level 100 podem 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)
for i = 1, 5 do
addEvent(
function()
broadcastMessage(
n .. " Está invadindo o [Castle24Hrs] para a guild [" .. g .. "].",
MESSAGE_STATUS_WARNING
)
end,
5000
)
end
end
return true
end