Não vou passar tags
function checkAndRemove(cid)
if isCreature(cid) then
addEvent(doTeleportThing, 15 * 60 * 1000, cid, getTownTemplePosition(getPlayerTown(cid)))
end
end
function onLogin(cid)
local loginStorage = 2323
local timeStorage = 2324
local vipPos = {x = x, y = y, z = z}
if getPlayerStorageValue(cid, loginStorage) > 0 then return true end
if getPlayerStorageValue(cid, loginStorage) > 0 and getPlayerStorageValue(cid, timeStorage) - os.time() < 1 then
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) return true end
setPlayerStorageValue(cid, timeStorage, os.time() + 15 * 60 * 1000)
setPlayerStorageValue(cid, loginStorage, 1)
doTeleportThing(cid, vipPos)
checkAndRemove(cid)
return true
end