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

Remove Storages with free account

Solution
because xikini gave you code for older tfs versions
use this
Code:
function onLogin(player)
    if player:getPremiumDays() == 0 then
        for i = 24023, 24033 do
            player:setStorageValue(i, -1)
        end
    end
    return true
end
function onLogin(cid)
if isPremium(cid) then
setPlayerStorageValue(cid, storage, number)
copy
copy
copy
copy
end
return true
end
 
i create this, but dont work
Code:
function onLogin(cid) 
if getPlayerPremiumDays(cid) > 1 then 
setPlayerStorageValue(cid, 24023, -1) 
setPlayerStorageValue(cid, 24024, -1)
setPlayerStorageValue(cid, 24025, -1) 
setPlayerStorageValue(cid, 24026, -1) 
setPlayerStorageValue(cid, 24027, -1) 
setPlayerStorageValue(cid, 24028, -1) 
setPlayerStorageValue(cid, 24029, -1) 
setPlayerStorageValue(cid, 24030, -1) 
setPlayerStorageValue(cid, 24031, -1) 
setPlayerStorageValue(cid, 24032, -1) 
setPlayerStorageValue(cid, 24033, -1) 
end
return true
end
 
because xikini gave you code for older tfs versions
use this
Code:
function onLogin(player)
    if player:getPremiumDays() == 0 then
        for i = 24023, 24033 do
            player:setStorageValue(i, -1)
        end
    end
    return true
end
 
Solution
Back
Top