Raised This Month: $ Target: $400
 0% 

save connections with nvault


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 07-29-2010 , 18:31   Re: save connections with nvault
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <nvault>

new gConnectVault

public plugin_init()
{
    
gConnectVault nvault_open("ConnectVault")
    if(
gConnectVault == INVALID_HANDLE)
        
set_fail_state("nVault failed to open")
}

public 
client_connect(id)
{
    new 
AuthID[34]
    
get_user_authid(idAuthID33)
    
    new 
tempdata[12]
    
nvault_get(gConnectVaultAuthIDtempdata)
    
    new 
connections str_to_num(tempdata)
    
    
connections++
    
    
num_to_str(connectionstempdata11)
    
    
nvault_set(gConnectVaultAuthIDtempdata)

That should save connections using nVault, but it uses SteamID.
RedRobster 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 00:18.


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