|
Junior Member
|
01-14-2023
, 06:37
Re: Quest about Fvault
|
#3
|
Quote:
Originally Posted by metal_upa
Here a test plugin for you to loop save every seconds.
PHP Code:
#include <amxmodx> #include <fvault>
const iMaxPlayers = 32; new const szVaultName[] = "TestLoopSave"; new iPlayTime[33];
public plugin_cfg() { set_task(1.0, "LoopSave", _, _, _, "b"); //every seconds }
public LoopSave() { new szKey[3], szData[16]; for(new id=1;id<=iMaxPlayers;id++) { iPlayTime[id]++; num_to_str(id, szKey, charsmax(szKey)); num_to_str(iPlayTime[id], szData, charsmax(szData)); fvault_set_data(szVaultName, szKey, szData); } }
See the result in your server, good luck then.
|
I have already mod that working on fvault its saving every min info about player and giving him 1 point every min the points saved on the fvault the question if its can sit heavy on the server and its will be able to save all players that gonna come or its someday will have limit
Last edited by Synceed; 01-14-2023 at 06:40.
|
|
|
|