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

LUA, storageinfo

nevix

Tunzodus.net
Joined
Mar 31, 2010
Messages
356
Reaction score
62
Location
Lithuanian
one question. how to do all players who have storage eg: 25001,1 to be changed to 25001,0 i have this script:

Code:
for _, pid in ipairs(getOnlinePlayers()) do
    if getPlayerStorageValue(pid, 25001) == 1 then
-- code
    end

but this who players online. I need all
 
Use that loop to do it for all online players and add the check if player has storage in login.lua and reset it there too.
Otherwise you can just use a SQL query while your server is closed or offline.
 
Back
Top