Raised This Month: $ Target: $400
 0% 

Vault help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 01-23-2005 , 22:09   Vault help
Reply With Quote #1

I once quit CS because of steam, but now I figure out with the old and in with the new 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
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-24-2005 , 22:33  
Reply With Quote #2

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.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



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 19:24.


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