Raised This Month: $ Target: $400
 0% 

bank


Post New Thread Reply   
 
Thread Tools Display Modes
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-21-2007 , 10:21   Re: bank
Reply With Quote #11

I didn't say "sm is faster than es" I said that the goal of SM and plugins on sm are to be as efficient as possible...

anyway, I'm sure someone will write it eventually, but personally it's too much of a gameplay modification in my eyes and often creates an unfair advantage to new users in the server. So, I probably will not be the one writing it.
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
theY4Kman
Join Date: Jun 2007
Location: Yak
Old 06-22-2007 , 00:10   Re: bank
Reply With Quote #12

I've looked over the ba_bank code, and I understand how it works. The features and commands that are run in it would be too hard to port over into SM until SQLite support is here. Sure, flat file can be done, but in ba_bank, you can transfer money. How would you do that with just a Steam ID and money amount?
__________________
http://y4kstudios.com
Is that loud enough? Oh, while I have you, check out Viper.
theY4Kman is offline
Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-22-2007 , 00:26   Re: bank
Reply With Quote #13

transfer using name, get the steamid of the name, the transfer can only be in server.
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
pRED*
Join Date: Dec 2006
Old 06-22-2007 , 04:14   Re: bank
Reply With Quote #14

Or save the person last used name into the bank details too.

"SteamId" "STEAM_NUB"
"Amount" "lots."
"LastName" "Look im a nub"
"LastLogin" "inserttimestamphere"


Then you could periodically browse through the file deleting entries older than x days. And you could find bank accounts by name or steamid
pRED* is offline
kill0r
Junior Member
Join Date: Jun 2007
Old 06-22-2007 , 08:31   Re: bank
Reply With Quote #15

Quote:
Originally Posted by pRED* | NZ View Post
Or save the person last used name into the bank details too.

"SteamId" "STEAM_NUB"
"Amount" "lots."
"LastName" "Look im a nub"
"LastLogin" "inserttimestamphere"


Then you could periodically browse through the file deleting entries older than x days. And you could find bank accounts by name or steamid
keyvalue is to slow, if it's for internet-steamids only you could make a binary file,
you would just need to convert the numbers of the steamid (see http://en.wikipedia.org/wiki/SteamID) to 8+4+32bit,
the amount in $ (32bit) and implement a kind of quick index to find them very fast.
kill0r is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-22-2007 , 11:39   Re: bank
Reply With Quote #16

if done w/ keyvalues pred it could be pruned periodically (I do it in ATAC)
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
benkoren
Junior Member
Join Date: Jun 2007
Old 06-26-2007 , 18:45   Re: bank
Reply With Quote #17

I just thought I'd express my interest in the plugin. I'm still reading up on the SourceMod dev docs so I couldn't write it yet, but I would definitely love it if somebody did
benkoren is offline
paegus
Senior Member
Join Date: Nov 2004
Location: Extreme low earth orbit
Old 09-02-2008 , 08:33   Re: bank
Reply With Quote #18

resurrection:

would it not be simpler to store the data in a per-user (steamid) basis. each person gets their own bank account (file) and limit transfer be made only by active players.

each player gets a STEAM_#-#-#######.txt file (keyvalue or whatever) that loads when they connect and saves at map end or when they disconnect. your active database will never be larger than the number of players connected. and instead of pruning old accounts they can collect interest
__________________
Live and learn or die and teach by example.
Plugins Mine | Hidden:SourceMod
paegus 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 09:50.


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