function onThink(interval, lastExecution)
local players = {}
local storage,items = 12345, {2160, 100}
for _, pid in pairs (getPlayersOnline()) do
if getPlayerStorageValue(pid, storage) >= 1 then
table.insert(players, pid)
end
end
if #players > 0 then
for i = 1, #players do
doPlayerAddItem(players[i], items[1], items[2])
end
end
return TRUE
end