SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 04/05/2016, 03:59 PM   #1
rootcause
Big Clucker
 
rootcause's Avatar
 
Join Date: Feb 2015
Location: /
Posts: 114
Reputation: 197
Default Yet Another Banking System

I'm still very creative when it comes to names.






Features

Dynamic ATMs & Bankers: You can create ATMs and bankers in-game and edit/remove them with ease.

Bank Accounts: Instead of saving money to a player's name, this script saves the money to an account ID. This allows players to create/manage as many accounts as they want. (You still can limit how many accounts can a player create with a simple define line. -explained below-)

Money Transferring: You can transfer money to an another account at any time you want, all you need is the ID of account you want to transfer money.

Logs: Every banking action players do (deposits, withdrawals, transfers, account logins, password changes) gets saved and can be checked from "Account Logs" option on the banker menu.

Config

#define BANKER_USE_MAPICON - You can remove this line if you don't want bankers to have map icons. Bankers use mapicon #58 if icons are enabled:
#define ATM_USE_MAPICON - You can remove this line if you don't want bankers to have map icons. Bankers use mapicon #52 if icons are enabled:
#define BANKER_ICON_RANGE - Stream distance of banker map icons, you can remove this if you don't plan to use banker map icons. (Default: 10.0)
#define ATM_ICON_RANGE - Stream distance of ATM map icons, you can remove this if you don't plan to use ATM map icons. (Default: 100.0)
#define ACCOUNT_PRICE - Price of creating a new bank account. (Default: 100)
#define ACCOUNT_CLIMIT - Option for how many bank accounts can a player create. You can remove this if you want players to create as many accounts as they want. (Default: 5)
#define ACCOUNT_LIMIT - Option for how much money can a bank account have. (Default: 500,000,000)

Bankers


You can create new bank accounts, check your account logs, change your account password and remove your account from bankers. Bankers can deposit/withdraw/transfer up to $250,000,000 at once.

ATMs


You can do your basic banking stuff from ATMs. These can deposit/withdraw/transfer up to $5,000,000 at once.

ATM Robbing (Optional)


If you download the robbable ATMs version, players can shoot an ATM to rob it. Robbed ATMs will be out of service for 2 minutes by default. (You can change it using ATM_REGEN define)

Commands

/bank: Opens the banker menu if you're near one.
/atm: Opens the ATM menu if you're near one.

RCON Only:

Account Related:
/asetowner [account id] [new owner name] - Changes ownership of a bank account.
/asetpassword [account id] [new password] - Changes password of a bank account.
/asetbalance [account id] [new balance] - Sets a bank account's balance to new balance.
/aclearlogs [account id] [type (optional)] - Clears the logs of a bank account, if you don't specify a type any type of logs belong to the account will get removed. Types: [0- All | 1- Logins | 2- Deposits | 3- Withdraws | 4- Transfers | 5- Password Changes]
/aremoveaccount [account id] - Removes a bank account.
/areturnaccount [account id] - Returns a removed bank account.

Banker Related:
/createbanker [skin id] - Creates a banker at your location with the specified skin.
/setbankerpos [banker id] - Moves a banker to your location.
/setbankerskin [banker id] [skin id] - Changes skin of a banker.
/removebanker [banker id] - Removes the banker you specified.

ATM Related:
/createatm - Creates an ATM at your location.
/editatm [ATM id] - Enables editing of the ATM you specified.
/removeatm [ATM id] - Remove the ATM you specified.

Credits

[HLF]Southclaw for WeaponData Include
BlueG & maddinat0r for MySQL Plugin
Incognito for Streamer Plugin
Yashas for Improved ZCMD
****** & Emmet_ & Misiur for sscanf and YSI.

Notes

* This script needs a MySQL connection to work.
* Don't forget to edit MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DBNAME defines.
* The .sql file is not included in the download because required tables will get created if they don't exist on initialization.
* Bank accounts actually don't get deleted in-game (even with /aremoveaccount). You can "real" delete accounts from bank_accounts table or you can make a command which uses a DELETE FROM... query. I did account removing this way because an admin may write a wrong account ID which results in a player losing all of his deposited money.

Downloads

For MySQL R39:
Mediafire (Pastebin)
Mediafire - Robbable Version (Pastebin - Robbable Version)

For MySQL R40:
Mediafire (Pastebin)

Last edited by rootcause; 06/09/2016 at 08:25 AM. Reason: bug fixes & mysql r40 version
rootcause is offline   Reply With Quote
Old 04/05/2016, 04:02 PM   #2
oMa37
Gangsta
 
Join Date: Feb 2016
Posts: 968
Reputation: 155
Default Re: Yet Another Banking System

Love your works buddy :P
Good job.
oMa37 is offline   Reply With Quote
Old 04/05/2016, 04:03 PM   #3
Zorono
Huge Clucker
 
Join Date: Dec 2015
Location: Africa, Egypt, Alexandria
Posts: 343
Reputation: 30
Default Re: Yet Another Banking System

Good Work Bro Keep It Up
__________________
Zorono is offline   Reply With Quote
Old 04/05/2016, 04:07 PM   #4
Deniz1467
Little Clucker
 
Deniz1467's Avatar
 
Join Date: Aug 2012
Location: Republic of Turkey
Posts: 37
Reputation: 3
Default Re: Yet Another Banking System

Nice one mate
Deniz1467 is offline   Reply With Quote
Old 04/05/2016, 04:23 PM   #5
Max_Andolini
Huge Clucker
 
Max_Andolini's Avatar
 
Join Date: Oct 2013
Posts: 315
Reputation: 37
Default Re: Yet Another Banking System

You are very incredible my friend
Max_Andolini is offline   Reply With Quote
Old 04/05/2016, 04:31 PM   #6
JeaSon
Gangsta
 
JeaSon's Avatar
 
Join Date: Aug 2013
Location: Future
Posts: 558
Reputation: 79
Default Re: Yet Another Banking System

Really Sweet
__________________
Again back
JeaSon is offline   Reply With Quote
Old 04/05/2016, 05:53 PM   #7
Whyd
Huge Clucker
 
Whyd's Avatar
 
Join Date: Sep 2012
Location: /
Posts: 415
Reputation: 30
Default Respuesta: Yet Another Banking System

Nice work
Whyd is offline   Reply With Quote
Old 04/05/2016, 06:00 PM   #8
blackeagle1122
Big Clucker
 
Join Date: Aug 2013
Posts: 58
Reputation: 3
Default Re: Yet Another Banking System

Good work :')
blackeagle1122 is offline   Reply With Quote
Old 04/05/2016, 07:10 PM   #9
MBilal
Gangsta
 
MBilal's Avatar
 
Join Date: May 2013
Posts: 811
Reputation: 57
Default Re: Yet Another Banking System

Cool but dude how to use Dialogs like u used without borders?
i see all those https://wiki.sa-mp.com/wiki/Dialog_Styles they have border but you use cool dialogs how i can use like that u used?
MBilal is offline   Reply With Quote
Old 04/05/2016, 07:21 PM   #10
biker122
Gangsta
 
Join Date: Feb 2014
Posts: 766
Reputation: 59
Default Re: Yet Another Banking System

I just love the way you made the history views. It's just impressing me! The script is nicely done, and the design is excellent. Good job, buddy!

@MBilal:
Quote:
Originally Posted by MBilal View Post
Cool but dude how to use Dialogs like u used without borders?
i see all those https://wiki.sa-mp.com/wiki/Dialog_Styles they have border but you use cool dialogs how i can use like that u used?
pawn Code:
ShowPlayerDialog(playerid, DIALOG_BANK_MENU, DIALOG_STYLE_TABLIST, menu_title, string, "Choose", "Close");
He's using the TABLIST style.
biker122 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Banking system with MYSQL MrViolence101 Scripting Help 2 15/12/2014 12:02 AM
[FilterScript] Banking System V1.0 Zh3r0 Filterscripts 115 10/10/2014 05:17 PM
Could Someone please make a Banking system ! XxJoexX Help Archive 4 09/03/2010 05:37 PM
Banking system cruising Help Archive 1 21/02/2010 03:21 PM


All times are GMT. The time now is 05:05 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.