SA-MP Forums Archive
[FilterScript] Banking System V1.0 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Banking System V1.0 (/showthread.php?tid=235245)

Pages: 1 2 3


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.
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:
  1. Download the files and put them in /filterscripts.
  2. Create a new folder in /scriptfiles, and name it bAccounts,(Notice the CAPS bA) here the player's account will be stored.
  3. Download sscanf v2.0(CLICK) and put it in /plugins ( If the folder doesn't exist, create it )
  4. Download YSI v1.0(CLICK) and add it in /pawno/include ( JUST COPY PASTE THE FOLDER ITSELF, NOT THE FILES INSIDE! )
  5. Open server.cfg and add the following
    filterscripts bsystem
    plugins sscanf
  6. 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:
pawn Code:
#define BANK            3598
BANK - Name the ID for an easier usage.
3598 - ID of the dialog

Example
pawn Code:
#define BANK            7999



- 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
View Post
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 !