• 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!

Time end Premium Account

Forkz

Intermediate OT User
Joined
Jun 29, 2020
Messages
528
Solutions
16
Reaction score
129
Hi otlanders,

LUA:
    if not isPremium(cid) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.notpremium)
        if getPlayerStorageValue(cid,55555) == 1 then
            doTeleportThing(cid, config.temple)
            doPlayerSendTextMessage(cid, 22, "Your premium account has expired!")
            setPlayerStorageValue(cid, 55555, 0)
        end
    else
        if getPlayerStorageValue(cid,55555) ~= 1 then
            setPlayerStorageValue(cid,55555,1)
        end
        doPlayerSetExperienceRate(cid, 1.15)
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.premium)
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Your premium account ends day "..os.date("%d %B %Y as %X.",getPlayerPremiumDays(cid)))
    end


1.png
 
Solution
Solved

LUA:
    -- Premium Account
    if not player:isPremium() then
        player:sendTextMessage(MESSAGE_STATUS_CONSOLE_RED, "You are not a Premium Account! Enjoy exclusive features and get 10% more experience.")
    elseif player:isPremium() and player:getAccountType() <= ACCOUNT_TYPE_GAMEMASTER then
        player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, "Your Premium Account gives exclusive features and 10% more experience.")
        local premiumDays = player:getPremiumDays()
        if premiumDays == 1 then
            player:sendTextMessage(MESSAGE_STATUS_CONSOLE_RED, "Your account has exactly 1 day of Premium Account, don't lose your benefits.")
        elseif premiumDays <= 7 then...
Solved

LUA:
    -- Premium Account
    if not player:isPremium() then
        player:sendTextMessage(MESSAGE_STATUS_CONSOLE_RED, "You are not a Premium Account! Enjoy exclusive features and get 10% more experience.")
    elseif player:isPremium() and player:getAccountType() <= ACCOUNT_TYPE_GAMEMASTER then
        player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, "Your Premium Account gives exclusive features and 10% more experience.")
        local premiumDays = player:getPremiumDays()
        if premiumDays == 1 then
            player:sendTextMessage(MESSAGE_STATUS_CONSOLE_RED, "Your account has exactly 1 day of Premium Account, don't lose your benefits.")
        elseif premiumDays <= 7 then
            player:sendTextMessage(MESSAGE_STATUS_CONSOLE_RED, "Your account only has "..premiumDays.." days of Premium Account.")
        end
    end
 
Solution
Back
Top