• 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

Well-Known Member
Joined
Jun 29, 2020
Messages
380
Solutions
1
Reaction score
89
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
 
Back
Top