|
Author
|
Message
|
|
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
|

04-16-2009
, 11:54
Re: AMXX: Saving data over mapchange?
|
#1
|
You could save the data in nVault, this is the simplest way IMO.
You can use the players STEAMID\IP as the save\lookup key and save the appropriate variable info as the data.
Example, on map change (client_disconnect) save the below key to vault.
new szKey[256];
formatex( szKey , 255 , "%d %d %d %d" , g_TK[id] , g_HS[id] , g_Kills[id] , g_Deaths[id] )
//The entry to vault will look like this: 44 0 123 3434
nvault_set( g_Vault , szAuthID , szKey )
On client_putinserver, read these values, parse them, and assign to appropriate variables.
new szKey[256];
//44 0 123 3434
nvault_get( g_Vault , szAuthID , szKey , 255 )
__________________
Last edited by Bugsy; 04-16-2009 at 11:59.
|
|
|
|