Raised This Month: $ Target: $400
 0% 

I need help with nVault


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-26-2016 , 20:52   Re: I need help with nVault
Reply With Quote #1

get_systime() - 1 and get_systime() + 1 makes no sense and serves no purpose as this just adds or removes 1 second from the current time. You should just do nvault_prune( g_vault , 0 , get_systime() ).
__________________
Bugsy is offline
GolfCart
Junior Member
Join Date: Jun 2013
Old 06-27-2016 , 08:35   Re: I need help with nVault
Reply With Quote #2

Quote:
Originally Posted by Bugsy View Post
get_systime() - 1 and get_systime() + 1 makes no sense and serves no purpose as this just adds or removes 1 second from the current time. You should just do nvault_prune( g_vault , 0 , get_systime() ).
Yeah, I figured it out already by taking a look on your nVault thread. Thanks.
Here is the working code..
PHP Code:
public RestartujUbistva()
{
    new 
iPlayer[32], iNum
    get_players
(iPlayeriNum)
    for(new 
iiNumi++) 
    {
        
ubistva_igraca[iPlayer[i]] = 0;
    }
    
nvault_prune(g_vault0get_systime())
    
server_cmd("changelevel de_dust2");
    return 
PLUGIN_CONTINUE


Last edited by GolfCart; 06-27-2016 at 08:36.
GolfCart 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 09:54.


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