AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved nvault (https://forums.alliedmods.net/showthread.php?t=318759)

LearninG 09-18-2019 20:14

nvault
 
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) }

Bugsy 09-18-2019 21:03

Re: nvault
 
Call SaveData() only on client_disconnect().

LearninG 09-19-2019 02:26

Re: nvault
 
works only on client_disconnect , but not client_disconnected , thanks solved.

JocAnis 09-19-2019 05:05

Re: nvault
 
Meaning it only works on 1.8.2? :D

EFFx 09-19-2019 17:03

Re: nvault
 
You can use this:

PHP Code:

#if AMXX_VERSION_NUM < 183
#define client_disconnected        client_disconnect
#endif 



All times are GMT -4. The time now is 19:38.

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