How I make to add a time of duration of the ticket? The hard ticket only ten hours.
PHP:
local teleport = {
x = ?,
y = ?,
z = ?
}
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,15001) == 1 then
setPlayerStorageValue(cid,15001,0)
doTeleportThing(cid, teleport, TRUE)
doSendMagicEffect(toPos, CONST_ME_MAGIC_BLUE)
doCreatureSay(item.uid, "Sorry, you need a ticket to travel.", TALKTYPE_ORANGE_1)
return TRUE
end
Last edited: