View Single Post
Synceed
Junior Member
Join Date: Apr 2016
Old 01-14-2023 , 06:37   Re: Quest about Fvault
Reply With Quote #3

Quote:
Originally Posted by metal_upa View Post
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(idszKeycharsmax(szKey));
        
num_to_str(iPlayTime[id], szDatacharsmax(szData));
        
fvault_set_data(szVaultNameszKeyszData);
    }

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.
Synceed is offline