local cfg = {
position = {x= 1000, y=1000, z=7} , --change to place to kick them to
item = 1232, --replace with item they have to have
storage = 500
}
function onThink(interval, lastExecution)
for _, cid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(cid, cfg.storage) == 1 then
if getPlayerItemCount(cid, cfg.item) < 1 then
doTeleportThing(cid, cfg.position)
setPlayerStorageValue(cid, cfg.storage, 0)
end
end
end
return true
end