Fiz correndo aqui, qualquer erro, só postar.
function onUse(cid, item, topos, item2, frompos)
local pos = {x = xxx, y = yyy, z = zzz} --Coordenadas para onde o player será teleportado.
function teleport_thing(cid, toPos, time, storage, cd)
if isCreature(cid) then
addEvent(doTeleportThing, time*1000, cid, toPos)
addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd)
end
return true
end
if getCreatureSkull(cid) >= 3 then
return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.")
end
if not isPremium(cid) then
return doPlayerSendCancel(cid, "Você não é premium.")
end
if getPlayerStorageValue(cid, 141029) > os.time () then
return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.")
end
local a = 10
for i = 1, 10 do
a = a - 1
addEvent(doPlayerSendTextMessage, i*1000, cid, 27, "Você será teleportado em "..a.." segundo(s).")
end
teleport_thing(cid, pos, 10, 141029, 30)
return true
end








info
Grupo: Artesão
Registrado: 29/04/13
Posts: 139
Reputação: +2
alguem me passa 1 script de TP SCROLL , que volta para yalahar , mais assim contando ate 10 , por exemplo : 10 9 8 7 6 5 4 3 2 1 teleport para yalahar , pode ser usado a cada 30 segundos , pks nao podem usar , e apenas pessoas premium pode usar ,e o item nunca some