AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [H3LP] nVault Remove (https://forums.alliedmods.net/showthread.php?t=296089)

DarthMan 04-11-2017 17:36

[H3LP] nVault Remove
 
Hello. I am having an issue. So I've been working on a plugin that loads stuff from nvault. Any way I can remove everything stored in the vault on plugin_cfg, so that the stuff is onl on the vault till the map changes? Thanks !

OciXCrom 04-11-2017 18:25

Re: [H3LP] nVault Remove
 
nvault_prune

If it's only for one map, it's much more efficient to use tries.

Natsheh 04-11-2017 18:32

Re: [H3LP] nVault Remove
 
Lol what about normal global array's it saves for 1 map

OciXCrom 04-11-2017 19:20

Re: [H3LP] nVault Remove
 
Yeah, that would work if players weren't allowed to join/quit during the map. :bee:

CrazY. 04-11-2017 21:43

Re: [H3LP] nVault Remove
 
[H3LP] O.O this only is the crazy version to write "Help".. :lol:

DarthMan 04-12-2017 03:02

Re: [H3LP] nVault Remove
 
Quote:

Originally Posted by OciXCrom (Post 2511408)
nvault_prune

If it's only for one map, it's much more efficient to use tries.

I read abOut the nvault_prune but it reuires get_gametime I guess I don't rly knw how to use it exactly. Every single tutorial that I have found used get_gametime. I want to use it in plugin_cfg()

DarthMan 04-12-2017 03:04

Re: [H3LP] nVault Remove
 
Quote:

Originally Posted by OciXCrom (Post 2511408)
nvault_prune

If it's only for one map, it's much more efficient to use tries.

Maybe like this? nvault_prune( i_Vault , 0 , get_systime() );

Natsheh 04-12-2017 06:21

Re: [H3LP] nVault Remove
 
You use nvault only if you wanted to save data for players for time, not just until map change

EFFx 04-12-2017 15:05

Re: [H3LP] nVault Remove
 
@Natsheh,

He want save all player's data until the map change. I guess.

Darth,

Code:
nvault_prune(i_Vault, 0, get_systime() + 1)

DarthMan 04-12-2017 15:20

Re: [H3LP] nVault Remove
 
Quote:

Originally Posted by EFFx (Post 2511594)
@Natsheh,

He want save all player's data until the map change. I guess.

Darth,

Code:
nvault_prune(i_Vault, 0, get_systime() + 1)

Ya, thanks :)


All times are GMT -4. The time now is 17:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.