Sabe fazer a tag?
local STORAGE = x --Storage.
local VALUE = x --Valor da storage acima.
local POS = {x = x, y = y, z = z} --Para onde será teleportado.
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) then return true end
if getPlayerStorageValue(cid, STORAGE) >= VALUE then
doTeleportThing(cid, POS)
doPlayerSendTextMessage(cid, 27, "Você foi teleportado.")
return true
else
return doPlayerSendCancel(cid, "Você não possui a storage.") and doTeleportThing(cid, fromPosition)
end
return true
end








info
Grupo: Campones
Registrado: 30/09/13
Posts: 59
Reputação: +3
Editado Janeiro 27 por Hamachine