Bom Como dito em cima estou com erro no script do Capture the flag 2.0 automatico
só do GlobalEvents que está dando erro no onTime Olha na Imagem Abaixo
Script ta dando Erro CTFMax.lua
--[[
Capture The Flag System
Author: Maxwell Denisson(MaXwEllDeN)
Version: 2.0
Contact:
[email protected]
]]
local CTF = CTF_LIB
local function sendEffect()
if (getGlobalStorageValue(16505) > 0) then
doSendAnimatedText(CTF.tppos, "CTF ON", math.random(180))
addEvent(sendEffect, 750)
end
end
function onTimer(interval)
local time = os.date("*t")
if (isInArray(CTF.days, time.wday)) then
doBroadcastMessage("[CTF] Está aberto em Konoha para novos participantes, em ".. CTF.timeclose .." minuto(s) não será mais possível entrar!")
setGlobalStorageValue(16705, 1)
addEvent(CTF.start, CTF.timeclose * 60 * 1000)
local teelz = doCreateItem(1387, 1, CTF.tppos)
doItemSetAttribute(teelz, "aid", 47521)
sendEffect()
end
return true
end
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
E XML USO ESTE \/
<globalevent name="CTFCheck" time="21:00" event="script" value="CTFMax.lua"/>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
OBS: meu Servidor é Milisegundos !!!!