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
da esse erro: