VAMOS LÁ TOU PRECISANDO DE UMA AJUDA EU COLOCO TUDO CERTINHO MAIS NA HORA DA O ERRO . QUANDO ABRO O SERVIDOR PRINT AQUI
ALGUÉM PODE MIM AJUDA?
local tpId = 1387
local tps = {
["Mega Mewtwo] = {pos = {x=249, y=487, z=7}, toPos = {x=214, y=525, z=7}, time = 30},
}
function removeTp(tp)
local t = getTileItemById(tp.pos, tpId)
if t then
doRemoveItem(t.uid, 1)
doSendMagicEffect(tp.pos, CONST_ME_POFF)
end
end
function onDeath(cid)
local tp = tps[getCreatureName(cid)]
if tp then
doCreateTeleport(tpId, tp.toPos, tp.pos)
doCreatureSay(cid, "O teleport irá sumir em "..tp.time..