2004-02-21 20:30:04 +00:00
|
|
|
/* Vault functions
|
2004-01-31 20:56:22 +00:00
|
|
|
*
|
2004-02-21 20:30:04 +00:00
|
|
|
* by the AMX Mod X Development Team
|
|
|
|
* originally developed by OLO
|
2004-02-08 11:31:54 +00:00
|
|
|
*
|
2004-01-31 20:56:22 +00:00
|
|
|
* This file is provided as is (no warranties).
|
|
|
|
*/
|
|
|
|
|
2004-02-21 20:30:04 +00:00
|
|
|
#if defined _vault_included
|
|
|
|
#endinput
|
|
|
|
#endif
|
|
|
|
#define _vault_included
|
|
|
|
|
2004-01-31 20:56:22 +00:00
|
|
|
/* Reads a data from given key.
|
2004-02-21 20:30:04 +00:00
|
|
|
* If len is set to zero then get_vaultdata
|
|
|
|
* returns value as an number. */
|
2004-01-31 20:56:22 +00:00
|
|
|
native get_vaultdata(const key[], data[] = "", len = 0);
|
|
|
|
|
|
|
|
/* Sets a data under given key. */
|
|
|
|
native set_vaultdata(const key[], const data[] = "" );
|
|
|
|
|
|
|
|
/* Removes a key from vault.*/
|
|
|
|
native remove_vaultdata(const key[]);
|
|
|
|
|
|
|
|
/* Checks if a key exists in the vault.*/
|
2004-02-15 02:29:51 +00:00
|
|
|
native vaultdata_exists(const key[]);
|