• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua [SQLite] -=[TFS]=- 0.4 8.60 Even with 0 days of VIP status, he continues to access the VIP area. storage: 13545

samuel157

/root
Joined
Mar 19, 2010
Messages
447
Solutions
3
Reaction score
49
Location
São Paulo, Brazil
GitHub
Samuel10M
[SQLite] -=[TFS]=- 0.4 8.60 Even with 0 days of VIP status, he continues to access the VIP area. storage: 13545

Script: buy vip 31 days and show you vip account end

Lua:
function onLogin(cid)
    local vipStorage = getPlayerStorageValue(cid, 13545)
   
    if vipStorage > 0 then
        if vipStorage - os.time() <= 0 then
            setPlayerStorageValue(cid, 13545, -1)
            doPlayerPopupFYI(cid, "Sua VIP Account acabou.")
            if string.find(tostring(getCreatureName(cid)), "%[VIP%]") then
                addEvent(EddyHavoc, 3 * 1000, cid)
            end
        else
            local pos = {x = 154, y = 51, z = 7}
            doTeleportThing(cid, pos)
            doPlayerPopupFYI(cid, "Sua VIP Account acabou.")
            setPlayerStorageValue(cid, 13545, -1)
            if string.find(tostring(getCreatureName(cid)), "%[VIP%]") then
                addEvent(EddyHavoc, 3 * 1000, cid)
            end
        end
    end
    return true
end
 
Last edited:
[SQLite] -=[TFS]=- 0.4 8.60 Even with 0 days of VIP status, he continues to access the VIP area. storage: 13545

Script: buy vip 31 days and show you vip account end

Lua:
function onLogin(cid)
    local vipStorage = getPlayerStorageValue(cid, 13545)
  
    if vipStorage > 0 then
        if vipStorage - os.time() <= 0 then
            setPlayerStorageValue(cid, 13545, -1)
            doPlayerPopupFYI(cid, "Sua VIP Account acabou.")
            if string.find(tostring(getCreatureName(cid)), "%[VIP%]") then
                addEvent(EddyHavoc, 3 * 1000, cid)
            end
        else
            local pos = {x = 154, y = 51, z = 7}
            doTeleportThing(cid, pos)
            doPlayerPopupFYI(cid, "Sua VIP Account acabou.")
            setPlayerStorageValue(cid, 13545, -1)
            if string.find(tostring(getCreatureName(cid)), "%[VIP%]") then
                addEvent(EddyHavoc, 3 * 1000, cid)
            end
        end
    end
    return true
end
Lua:
function onLogin(cid)
    local vipStorage = getPlayerStorageValue(cid, 13545)
        if vipStorage <= os.time() then
            local pos = {x = 154, y = 51, z = 7}
            doTeleportThing(cid, pos)
            doPlayerPopupFYI(cid, "Sua VIP Account acabou.")
            if string.find(tostring(getCreatureName(cid)), "%[VIP%]") then
                addEvent(EddyHavoc, 3 * 1000, cid)
            end
        end
    return true
end

check this script
 
that function

Lua:
function onLogin(cid)
    local vipStorage = getPlayerStorageValue(cid, 13545)
    
    if vipStorage > 0 then
        local currentTime = os.time()
        if vipStorage <= currentTime then
            setPlayerStorageValue(cid, 13545, -1)
            doPlayerPopupFYI(cid, "Sua VIP Account acabou.")
            if string.find(tostring(getCreatureName(cid)), "%[VIP%]") then
                addEvent(EddyHavoc, 3 * 1000, cid)
            end
        else
            local daysLeft = math.ceil((vipStorage - currentTime) / (24 * 60 * 60)) -- Calcula os dias restantes
            local pos = {x = 154, y = 51, z = 7}
            doTeleportThing(cid, pos)
            doPlayerPopupFYI(cid, "Voce ainda tem " .. daysLeft .. " dias de VIP restantes.")
        end
    end
    return true
end
 

Similar threads

Back
Top