Raised This Month: $ Target: $400
 0% 

Get nVault Timestamp


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 05-14-2020 , 09:38   Get nVault Timestamp
Reply With Quote #1

Hi,
Today I tried to get Timestamp from a nvault key.
Code:
PHP Code:
new iTimestamp szVal10 ], AuthID[33];
    
get_user_authid(idAuthIDcharsmax(AuthID))
        if(!
nvault_lookupg_Vault AuthIDszVal charsmaxszVal ) , iTimestamp )
        {
            
//do stuff
        
}
        else 
        {
            
client_print(idprint_team_default"You need to wait %02d hours until execute again!", (get_systime() - iTimestamp) );
            return 
PLUGIN_HANDLED;
        } 
This should get timeleft until the key got prune, but I get only this every second when I type the command to execute the code above:

PHP Code:
You need to wait 1 hours until execute again!
You need to wait 2 hours until execute again!
You need to wait 3 hours until execute again!
You need to wait 4 hours until execute again
I tried to use UnixTime Converter but nothing.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
 


Thread Tools
Display Modes

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:06.


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