[Include] YBANK - Easy & Very simple to use! V1
#1

YBANK
YLLERON'S BANK SYSTEM v1.7a

Hi, everyone. I start to work on a new, simple include called YBANK. It is a banking system. I try to create somethin' else than GM, more simple and easy to use. Maybe there is a better system, i don't know, but this is a good chance to make somethin', that can be better and better (UPDATES). In case you find a mistake or bug, don't hesitate to contact me via PM or send feedback below.

Ok, now i present you this (my) little script called YBANK.

Create a bank is very easy just find place where do you want to make pickup into bank.
pawn Код:
public OnGameModeInit()
{
    CreateYBank(1958.3783, 1343.1572, 15.3746, "State bank");
    return 1;
}
This make bank in location 1958.3783, 1343.1572, 15.3746 with name State bank.
If you would make more banks, just write another line with new float positions and name. Important settings in version 1.4a are set of dini. You have to create new folder in scriptfiles - "/scriptfiles/ybank/users/"

UPDATE: 1.4a
Код:
- This version contain new system - save to file
- Can delete account
- Account protected by password
UPDATE: 1.6
Код:
- Can change bank pass
- Added simple password hash
Another important settings is call function in gamemode. To call YBANK functions you could do this:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    yOnDialogResponse(playerid, dialogid, response, listitem, inputtext);
    return 1;
}


public OnPlayerPickUpPickup(playerid, pickupid)
{
        yOnPlayerPickUpPickup(playerid, pickupid);
    return 1;
}
simple example how to use this script:
pawn Код:
public OnPlayerSpawn(playerid)
{
        // this give cash to player's bank
        ybank_SetMoney ( playerid, 5000 );
}
Dialogs and pickups need call to main public of GM. At this time is all very simple and we continue.
To check, set, get, give, take someones money you will need this YBANK stocks:

Set bank cash:
Код:
ybank_SetMoney( playerid, cash )
Delete amout cash in bank:
Код:
ybank_Delete( playerid, cash )
Get cash in bank:
Код:
ybank_Money( playerid )
Add cash to bank
Код:
ybank_Add( playerid, cash )
Dialog has contain basic function for bank system
Код:
1. Account status
2. Draw amout
3. Deposit to bank
4. Transact cash
5. Change Pass
6. Delete account
Anyway i try to make it better and better, maybe that will be another good script, which help to everyone.


Download:
Mediafire v1: DOWNLOAD
MediaFire v1.4a: DOWNLOAD
Pastebin v1.6: VIEW

Newest:
Pastebin v1.7a:VIEW // Fixed - thanks to Bartando
Reply


Messages In This Thread
YBANK - Easy & Very simple to use! V1.6 - by ylleron - 06.08.2011, 20:36
Re: YBANK - Easy & Very simple to use! V1 - by Rock_Ro - 06.08.2011, 20:42
Re: YBANK - Easy & Very simple to use! V1 - by ylleron - 06.08.2011, 20:46
Re: YBANK - Easy & Very simple to use! V1 - by Kaperstone - 07.08.2011, 01:10
Re: YBANK - Easy & Very simple to use! V1 - by ylleron - 07.08.2011, 13:35
Re: YBANK - Easy & Very simple to use! V1 - by dud - 07.08.2011, 19:23
Re: YBANK - Easy & Very simple to use! V1 - by ylleron - 07.08.2011, 19:33
Re: YBANK - Easy & Very simple to use! V1 - by Feras - 10.08.2011, 20:55
Re: YBANK - Easy & Very simple to use! V1 - by ylleron - 15.08.2011, 21:19
Re: YBANK - Easy & Very simple to use! V1 - by ylleron - 22.08.2011, 20:19
Re: YBANK - Easy & Very simple to use! V1 - by Bartando - 03.09.2011, 12:30
Re: YBANK - Easy & Very simple to use! V1 - by ylleron - 04.09.2011, 20:14
Re: YBANK - Easy & Very simple to use! V1 - by Bartando - 07.09.2011, 13:49
Re: YBANK - Easy & Very simple to use! V1 - by Kaperstone - 07.09.2011, 14:07
Re: YBANK - Easy & Very simple to use! V1 - by Bartando - 07.09.2011, 18:51
Re: YBANK - Easy & Very simple to use! V1 - by ylleron - 07.09.2011, 19:25
Re: YBANK - Easy & Very simple to use! V1 - by ylleron - 07.09.2011, 19:39
Re: YBANK - Easy & Very simple to use! V1 - by letters - 08.09.2011, 07:10
Re: YBANK - Easy & Very simple to use! V1 - by ylleron - 08.09.2011, 13:36
Re: YBANK - Easy & Very simple to use! V1 - by Bartando - 08.09.2011, 15:25
Re: YBANK - Easy & Very simple to use! V1 - by =WoR=Varth - 08.09.2011, 15:38
Re: YBANK - Easy & Very simple to use! V1 - by ylleron - 08.09.2011, 19:00
Re: YBANK - Easy & Very simple to use! V1 - by Gh0sT_ - 08.09.2011, 19:17
Re: YBANK - Easy & Very simple to use! V1 - by Bartando - 08.09.2011, 20:14
Re: YBANK - Easy & Very simple to use! V1 - by ylleron - 08.09.2011, 20:21
Re: YBANK - Easy & Very simple to use! V1 - by Bartando - 09.09.2011, 05:08
Re: YBANK - Easy & Very simple to use! V1 - by ylleron - 09.09.2011, 13:03
Re: YBANK - Easy & Very simple to use! V1 - by rapister - 17.10.2012, 08:14

Forum Jump:


Users browsing this thread: 4 Guest(s)