It should do it. I used cInventory::CopyToItems(cItems). It doesn't save all the empty slots, but it does the job.
If the server crashes then there is nothing I can do, but when the server reloads, restarts or stops the OnDisable function gets called which stops all the arenas and gives all the players their inventory back.
(03-15-2014, 09:16 PM)tonibm19 Wrote: I saw the code and it seems it does.
But, if server restarts or crash, is the inventory saved?
If the server crashes then there is nothing I can do, but when the server reloads, restarts or stops the OnDisable function gets called which stops all the arenas and gives all the players their inventory back.