This is a script that every 24 hrs removes 1 unit from X storage value but i cant get it to work, it makes it go from 30 to -2, 21:25 You have -2 vip days left.
-- Credits StreamSide and Empty
function onThink(cid, item, fromPosition, toPosition)
for _, name in ipairs(getOnlinePlayers()) do...