Currently one reason is for storing session stats which just get reset / discarded at the end of the session and not stored in database - I'm running L4D2, and a campaign session usually consists of 4 mapchanges and clients can get moved around slots. I'm firstly looking to fix this.
There would be other small things too, and I could use clientprefs or database, but I'm wary of adding more database calls than I really need because it can cause lag because I dont have good I/O speed and I don't use threaded query. If clientprefs is threaded that could be okay but otherwise it would be good to keep things in memory.
I will try to use multidimensional array where I store and update userid, client, ect. If that fails I will try database, I guess.
But yeah, if anyone has code of a fast and simple way to do it in memory, that would be very helpful!
Thanks all for the help