Banking System V1.2 -
Zh3r0 - 05.03.2011
Banking Systemv1.2
[Deposit, Withdraw, Transfer( Offline, Online ), Delete Account, View Stats
Version: 1.2 - FIXED BUG WHEN PLAYER CAN LOGIN BY JUST PRESSING "LOGIN"
Version: 1.1 - OFFLINE TRANSFER FIXED! PLEASE DOWNLOAD AGAIN!
Consider yourself re-downloading!
Information
This script will help you transfer money to a specified player with the specified amount of money, you can deposit moneys, withdraw them later and transfer moneys to an offline player straight into their account!This system uses Y_INI and SSCANF, easy as hell.
There are 2 methods of transfer.
- Direct Transfer( Active Player )
The player must be connected to the server, however, the money sent trough this method will not be deposited into his account, it will be added to player's current money.
This method is more of a /sendcash <id> <money> command, which is easy to understand.
You need to insert either his name, or his ID.
- Account Transfer( Offline Transfer )
With this method the moneys transfered will be added straight into his account, he can also received the moneys if he is disconnected.
*If the player is connected he will received a message which will notify the player of the transfer, from where it comes, what amount of moneys, and when they were sent
*If the player is NOT connected, then this method will add some variables into his account and on connection, if that variable is true, then he will received the sent amount( It stores from where it came from, which player, when it was sent, and the amount ) you can check the pictures for more information.
The moneys will be allocated straight into player's bank account.
Same for you, the moneys sent will be withdrawed from your bank account!
The command to access the dialog id: /bank
There is only 1 command! With which you will create an account, login into the account, and access the account.
Screenshots
Instalation
Follow the steps:
- Download the files and put them in /filterscripts.
- Create a new folder in /scriptfiles, and name it bAccounts,(Notice the CAPS bA) here the player's account will be stored.
- Download sscanf v2.0(CLICK) and put it in /plugins ( If the folder doesn't exist, create it )
- Download YSI v1.0(CLICK) and add it in /pawno/include ( JUST COPY PASTE THE FOLDER ITSELF, NOT THE FILES INSIDE! )
- Open server.cfg and add the following
filterscripts bsystem
plugins sscanf
- This is it! You done it, enjoy.
Download
FIXED VERSION - PLEASE UPDATE
Solidfiles - Direct
pastebin
Extra
- If you want to modify the location of where the player's account will be stored, change:
pawn Code:
#define FILE_LOCATION "/bAccounts/%s.ini"
/bAccounts - This is the folder from
/scriptfiles
%s - It will be transformed into player's name.
.ini - File extenstioni(
DON'T CHANGE THE EXTENSION! y_ini WORKS THIS WAY! )
Example
pawn Code:
#define FILE_LOCATION "/Folder1/Folder2/%s.ini"
- If the dialog id interferes with another one from your gamemode, change the following:
BANK - Name the ID for an easier usage.
3598 - ID of the dialog
Example
- If you want or not to save the stats on exit, then change:
pawn Code:
#define SAVE_ON_EXIT true
with
pawn Code:
#define SAVE_ON_EXIT false
true - Save them on disconnect
false - Don't save them on disconnect.
However, when a player makes a transfer, or deposits money, or withdraws them, it will automatically save the info into the account, use this if you think some data may be lost.
- If you wan to or not to tell the player that he has or not an account, then change:
pawn Code:
#define TELL_ON_CONNECT true
with
pawn Code:
#define TELL_ON_CONNECT false
true - Tell the player on connect.
false - Don't tell the player on connect.
For further information, for reporting bugs, or anything related to this system, please post here and i will reply as soon as possible.
Enjoy.
Re: Banking System V1.0 -
wheelman_WM - 05.03.2011
bro u putted gamemode text before the scriptname
Re: Banking System V1.0 -
Zh3r0 - 05.03.2011
Quote:
Originally Posted by wheelman_WM
bro u putted gamemode text before the scriptname
|
You really are annoying, what again!?
Re: Banking System V1.0 -
int3s0 - 05.03.2011
Best Banking System. 10/10
Re: Banking System V1.0 -
Steven82 - 05.03.2011
Awesome job, turned out really nice man.
Re: Banking System V1.0 -
Thanator - 05.03.2011
Awesome bre
Re: Banking System V1.0 -
alanhutch - 05.03.2011
Awesome! 10/10 The best Bank System!!
Re: Banking System V1.0 -
Ironboy - 05.03.2011
Awesome script
Re: Banking System V1.0 -
BASITJALIL - 05.03.2011
Awesome release
Re: Banking System V1.0 -
TheArcher - 05.03.2011
Awesome bank system keep it up man
Re: Banking System V1.0 -
NekErM@N - 05.03.2011
Bravo 10/10
Re: Banking System V1.0 -
bestr32 - 05.03.2011
Amazing, I need to make a bank system. Really. :P, Maybe hard but I am not a Newbie.
Re: Banking System V1.0 - [BEP]AcerPilot - 05.03.2011
Really cool
11/10
Re: Banking System V1.0 -
Montis123 - 05.03.2011
I see pictures I think this is good job.
Re: Banking System V1.0 -
wheelman_WM - 05.03.2011
Very Awesome Script
101/100
Re: Banking System V1.0 -
HyperZ - 05.03.2011
Nice work man i like it.
Re: Banking System V1.0 -
iMonk3y - 05.03.2011
Wow, I love it I love it
real pro!
Re: Banking System V1.0 -
OsamaBg - 06.03.2011
Please upload all files + includes
Re: Banking System V1.0 -
Hiddos - 06.03.2011
Looks pretty cool, good job!
Re: Banking System V1.0 -
antonio112 - 06.03.2011
Best one ! Like always, you did a great job. Keep it up !