Basically, what I am looking to do is keep an archived copy of every spray ever uploaded, and know which player it was associated with and when it was uploaded.
So, essentially a plugin that will, as each spray gets uploaded:
- Copy it to another folder - presumably relative to the game/mod folder. For TF2, maybe something like tf/sprays. Ideally, configurable via a CVAR ("sv_sprayarchivefolder" or something like that).
- Name that copy in a format based on a combination current date/time (yyyymmddhhmm) and the players SteamID64. Something like: 201512012052-76561197960266039.vtf
From there, various server-OS-side scripts could do
whatever with those file (zip them up, upload them, move them to the cloud - whatever).
__________________