Raised This Month: $ Target: $400
 0% 

[H3LP] nVault Remove


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-11-2017 , 17:36   [H3LP] nVault Remove
Reply With Quote #1

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 !
DarthMan is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-11-2017 , 18:25   Re: [H3LP] nVault Remove
Reply With Quote #2

nvault_prune

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

Last edited by OciXCrom; 04-11-2017 at 18:26.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-12-2017 , 03:02   Re: [H3LP] nVault Remove
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
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 is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-12-2017 , 03:04   Re: [H3LP] nVault Remove
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
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() );

Last edited by DarthMan; 04-12-2017 at 03:04.
DarthMan is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-11-2017 , 18:32   Re: [H3LP] nVault Remove
Reply With Quote #5

Lol what about normal global array's it saves for 1 map
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 04-11-2017 at 18:33.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-11-2017 , 19:20   Re: [H3LP] nVault Remove
Reply With Quote #6

Yeah, that would work if players weren't allowed to join/quit during the map.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-11-2017 , 21:43   Re: [H3LP] nVault Remove
Reply With Quote #7

[H3LP] O.O this only is the crazy version to write "Help"..
__________________








CrazY. is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-12-2017 , 06:21   Re: [H3LP] nVault Remove
Reply With Quote #8

You use nvault only if you wanted to save data for players for time, not just until map change
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 04-12-2017 at 15:58.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-12-2017 , 15:05   Re: [H3LP] nVault Remove
Reply With Quote #9

@Natsheh,

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

Darth,

Code:
nvault_prune(i_Vault, 0, get_systime() + 1)
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-12-2017 , 15:20   Re: [H3LP] nVault Remove
Reply With Quote #10

Quote:
Originally Posted by EFFx View Post
@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
DarthMan is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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