AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Vault help (https://forums.alliedmods.net/showthread.php?t=9579)

knekter 01-23-2005 22:09

Vault help
 
I once quit CS because of steam, but now I figure out with the old and in with the new :P I've never written a plugin that involves a vault so im trying to work it out. I checked the functions list for files and im kinda confused. I have a file called bank.ini and I want have it write the users money in it.

I want it to write to the file in this format:

Steamid money

It will be updated every round. When a person comes back the the server it will find his id and put his money back the way it was when he left the server. If anyone can write me an example to get me started I would very much appreciate it. (this is for CS)

-Knekter

XxAvalanchexX 01-24-2005 22:33

Just take a look at the functions in vault.inc. It's pretty self explanatory. "key" is the data name in a sense (think of it as a variable), and "data" is the data value. You can't specify a specific file to write for, it is all written to vault.ini, although there is a file in the configs folder which defines the vault file, but every plugin that uses vault will write to the same file.


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

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