SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/02/2012, 10:46 PM   #1
ylleron
Big Clucker
 
ylleron's Avatar
 
Join Date: May 2011
Location: Slovakia
Posts: 193
Reputation: 7
Default yBank V2.1 - a.k.a 'Safe Money Fast' [!UPDATED - sscanf + y_ini]

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?
Code:
Optimalized, changed code - better read
Added sscanf2 (plugin)
What is new in Version 2.1?
Code:
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 Code:
#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 Code:
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 Code:
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 Code:
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 Code:
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
Code:
plugins sscanf
For linux server
Code:
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 Code:
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
__________________

Last edited by ylleron; 14/02/2012 at 09:44 PM.
ylleron is offline   Reply With Quote
Old 12/02/2012, 11:11 PM   #2
Ironboy.
Little Clucker
 
Join Date: Apr 2011
Posts: 45
Reputation: 6
Default Re: yBank V2.0 - a.k.a 'Safe Money Fast'

Really nice
Ironboy. is offline   Reply With Quote
Old 13/02/2012, 11:51 AM   #3
V_LOPE
Big Clucker
 
Join Date: Sep 2011
Posts: 121
Reputation: 26
Default Re: yBank V2.0 - a.k.a 'Safe Money Fast'

Perfect
Nice Work.
V_LOPE is offline   Reply With Quote
Old 13/02/2012, 01:05 PM   #4
ylleron
Big Clucker
 
ylleron's Avatar
 
Join Date: May 2011
Location: Slovakia
Posts: 193
Reputation: 7
Default Re: yBank V2.0 - a.k.a 'Safe Money Fast'

Thank you guys
__________________
ylleron is offline   Reply With Quote
Old 13/02/2012, 01:45 PM   #5
Zarky
Big Clucker
 
Join Date: Jan 2012
Posts: 61
Reputation: 4
Default Re: yBank V2.0 - a.k.a 'Safe Money Fast'

Really Good, Keep up the Neat Work
Zarky is offline   Reply With Quote
Old 13/02/2012, 01:49 PM   #6
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,846
Reputation: 1399
Default Re: yBank V2.0 - a.k.a 'Safe Money Fast'

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.
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 13/02/2012, 02:26 PM   #7
ylleron
Big Clucker
 
ylleron's Avatar
 
Join Date: May 2011
Location: Slovakia
Posts: 193
Reputation: 7
Default Re: yBank V2.0 - a.k.a 'Safe Money Fast'

Quote:
Originally Posted by Dwane View Post
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.
__________________
ylleron is offline   Reply With Quote
Old 13/02/2012, 03:12 PM   #8
ylleron
Big Clucker
 
ylleron's Avatar
 
Join Date: May 2011
Location: Slovakia
Posts: 193
Reputation: 7
Default Re: yBank V2.0 - a.k.a 'Safe Money Fast'

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
__________________

Last edited by ylleron; 14/02/2012 at 09:36 PM.
ylleron 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
[Include] YBANK - Easy & Very simple to use! V1 ylleron Includes 27 17/10/2012 09:14 AM
[FilterScript] Anti-Money-Hack | 100% Safe! XCarBOn Filterscripts 4 01/12/2010 04:41 PM
Need money, FAST lesley Everything and Nothing 27 17/03/2009 07:26 AM


All times are GMT. The time now is 02:10 AM.


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