• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.
Resource icon

savePlayers

skeetzoo

Banned User
Joined
Aug 22, 2024
Messages
90
Reaction score
29
Location
theforgottenserver
skeetzoo submitted a new resource:

savePlayers - revscript

LUA:
local function savePlayer(player)
    if not player:save() then
        player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Failed to save your data.")
        return
    end

    player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Your data has been successfully saved.")
end

local function savePlayersCoroutine()
    local index = 0
    local playersId = {}
    for _, player in ipairs(Game.getPlayers()) do
        index = index + 1
        playersId[index] = player:getId()...

Read more about this resource...
 
Back
Top