Raised This Month: $ Target: $400
 0% 

save connections with nvault


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Afro-Ankan
Member
Join Date: Jul 2009
Location: Sweden
Old 07-29-2010 , 20:09   Re: save connections with nvault
Reply With Quote #1

should look like this ?

PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <nvault>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"
new gConnections[33]
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++
 
gConnections[id] = connections
 
 num_to_str
(connectionstempdata11)
 
 
nvault_set(gConnectVaultAuthIDtempdata)
 
 new 
name[34]
 
get_user_name(idname33)
 
client_print(0print_chat"%s has connected. [%i Connections]"namegConnections[id])

Afro-Ankan is offline
Send a message via MSN to Afro-Ankan
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