Raised This Month: $12 Target: $400
 3% 

Solved nvault


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 09-18-2019 , 20:14   nvault
Reply With Quote #1

Hi , is it possible to set this informations only on "client_disconnected" instead of doing it every time AP (Ammo Packs ) is changing ?

(got "szAuthid[id]" on client_putinserver )
Code:
new szAuthid[MAX_PLAYERS + 1][35]
Code:
SaveData(id) {     new vaultkey[64], vaultdata[256]                 formatex(vaultkey, charsmax(vaultkey), "%s-/", szAuthid[id])     formatex(vaultdata, charsmax(vaultdata), "%i#", AP[id])         nvault_set(g_save, vaultkey, vaultdata) }

Last edited by LearninG; 09-19-2019 at 02:35.
LearninG is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-18-2019 , 21:03   Re: nvault
Reply With Quote #2

Call SaveData() only on client_disconnect().
__________________
Bugsy is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 09-19-2019 , 02:26   Re: nvault
Reply With Quote #3

works only on client_disconnect , but not client_disconnected , thanks solved.

Last edited by LearninG; 09-19-2019 at 02:34.
LearninG is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-19-2019 , 05:05   Re: nvault
Reply With Quote #4

Meaning it only works on 1.8.2?
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 09-19-2019 , 17:03   Re: nvault
Reply With Quote #5

You can use this:

PHP Code:
#if AMXX_VERSION_NUM < 183
#define client_disconnected        client_disconnect
#endif 
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Reply


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 15:25.


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