YBANK - Easy & Very simple to use! V1.4a


    Posts : 82
    Join date : 26.04.2011

    YBANK - Easy & Very simple to use! V1.4a

    Odoslať pre ylleron za Ne august 21, 2011 7:47 am


    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.
    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

    Another important settings is call function in gamemode. To call YBANK functions you could do this:
    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:
    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. Delete account

    Anyway i try to make it better and better, maybe that will be another good script, which help to everyone.

    Mediafire v1: DOWNLOAD
    Pastebin v1: VIEW
    Mediafire v1.2: DOWNLOAD
    Pastebin v1.2: VIEW

    MediaFire v1.4a: DOWNLOAD
    Pastebin v1.4a: VIEW

    Pripravujeme SexyCity
    * Sofistikovaný Gamemode s pokrocilimi funkciami a moznostami
    * Profesionalny administracni tym, ktory je vybrany s najlepsich hracov

      Práve je Št december 13, 2018 7:13 am