[FilterScript] yBank V2.0 - a.k.a 'Safe Money Fast'
#1

Hi, it has been too long when i released the first version yBank. Yes, and t'day this my little script have second version. As you know (when you used yBank) that is simple to use. Nothing complicate. So what Now? It simple and it will still for ever!

What is new in Version 2?
Код:
Optimalized, changed code - better read
Added sscanf2 (plugin)
What is new in Version 2.1?
Код:
Deleted Dini and added y_ini system
How to install?
Let's go to install this script. As first you need to do this in your Gamemode (or Filterscript):

pawn Код:
#include <yBank>
- This load include yBank. Next and IMPORTANT part is location where pickup is going to be spawned!
- Again, very simple just put this line in (in case of Gamemode) callback - OnGameModeInit
pawn Код:
CreateYBank(2024.2379,1344.1517,10.8203);
- Coordination above are just like example. You should put there your own position. When You want to more banks, just put that same line with other position. Example:
pawn Код:
CreateYBank(2024.2379,1344.1517,10.8203);
CreateYBank(1512.8508,1488.1905,52.2783);
- Next we need to call Pickup & Dialog callback. So easy we copy this following lines
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    ydialog(playerid, dialogid, response, listitem, inputtext);
    return 1;
}
- This is for Dialog calling and next is Pickup callback

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    ypickup(playerid);
    return 1;
}
- The last thing is sscanf2 which you can find here
- sscanf you activated when you add following line to you server.cfg

For Windows server
Код:
plugins sscanf
For linux server
Код:
plugins sscanf.so
- Next you need to download YSI Package and put it in to Include folder.

How to use it?
How to use it? Very simple.

pawn Код:
SetYBankMoney(playerid, cash); // This set player's bank money to 'cash'
TakeYBankMoney(playerid, cash); // This take player's bank money in value of 'cash'
GiveYBankMoney(playerid, cash); // This give to player's account money in value of 'cash'
DeleteYBank(playerid); // This delete player file = account
- In game, when you enter to pickup you will see this menu:
So, what do you think about yBank? Rate, comment... Thank you for using this script.

Download:
Pastebin - 2.0 - View
DropBox- 2.1 - http://dl.dropbox.com/u/62302254/yBank-v2.pwn
Reply
#2

Really nice
Reply
#3

Perfect
Nice Work.
Reply
#4

Thank you guys
Reply
#5

Really Good, Keep up the Neat Work
Reply
#6

Good Job, but as it's the version 2 you could use something different to save it because Dini is old and slow compared y_ini or SQL.
Reply
#7

Quote:
Originally Posted by Dwane
Посмотреть сообщение
Good Job, but as it's the version 2 you could use something different to save it because Dini is old and slow compared y_ini or SQL.
Yeah i was thinking about this method. Maybe in future i will make next update and change dini to y_ini or something else.
Reply
#8

Updated to v2.1
After Dwane's suggestion i say that i should to make it more sophisticate and make registration system better. From old Dini to Y_Ini.

Download - http://dl.dropbox.com/u/62302254/yBank-v2.pwn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)