PaintBall
#4
It should do it. I used cInventory::CopyToItems(cItems). It doesn't save all the empty slots, but it does the job.

(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.
Reply
Thanks given by:


Messages In This Thread
PaintBall - by NiLSPACE - 03-15-2014, 02:22 AM
RE: PaintBall - by NiLSPACE - 03-15-2014, 09:07 PM
RE: PaintBall - by tonibm19 - 03-15-2014, 09:16 PM
RE: PaintBall - by NiLSPACE - 03-15-2014, 09:20 PM
RE: PaintBall - by pikachu784 - 04-17-2014, 03:01 PM
RE: PaintBall - by NiLSPACE - 04-17-2014, 08:26 PM
RE: PaintBall - by LO1ZB - 04-17-2014, 09:02 PM
RE: PaintBall - by pikachu784 - 04-18-2014, 08:41 AM
RE: PaintBall - by bearbin - 04-18-2014, 05:03 PM
RE: PaintBall - by xoft - 04-18-2014, 05:20 PM
RE: PaintBall - by tigerw - 04-19-2014, 02:15 AM
RE: PaintBall - by pikachu784 - 04-19-2014, 07:06 AM
RE: PaintBall - by NiLSPACE - 04-19-2014, 07:07 AM
RE: PaintBall - by pikachu784 - 04-19-2014, 08:14 AM
RE: PaintBall - by NiLSPACE - 04-19-2014, 06:33 PM
RE: PaintBall - by NiLSPACE - 07-16-2014, 09:49 PM
RE: PaintBall - by tonibm19 - 07-16-2014, 10:05 PM
RE: PaintBall - by xoft - 07-16-2014, 10:44 PM
RE: PaintBall - by tigerw - 07-17-2014, 08:30 AM
RE: PaintBall - by xoft - 07-17-2014, 06:08 PM
RE: PaintBall - by NiLSPACE - 09-16-2015, 04:24 PM
RE: PaintBall - by Alc - 02-17-2018, 06:19 AM
RE: PaintBall - by NiLSPACE - 02-17-2018, 06:40 AM



Users browsing this thread: 1 Guest(s)