12.02.2012, 21:46
(
Последний раз редактировалось ylleron; 14.02.2012 в 20:44.
)
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?
What is new in Version 2.1?
How to install?
Let's go to install this script. As first you need to do this in your Gamemode (or Filterscript):
- 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
- 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:
- Next we need to call Pickup & Dialog callback. So easy we copy this following lines
- This is for Dialog calling and next is Pickup callback
- 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
For linux server
- Next you need to download YSI Package and put it in to Include folder.
How to use it?
How to use it? Very simple.
- 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
What is new in Version 2?
Код:
Optimalized, changed code - better read Added sscanf2 (plugin)
Код:
Deleted Dini and added y_ini system
Let's go to install this script. As first you need to do this in your Gamemode (or Filterscript):
pawn Код:
#include <yBank>
- Again, very simple just put this line in (in case of Gamemode) callback - OnGameModeInit
pawn Код:
CreateYBank(2024.2379,1344.1517,10.8203);
pawn Код:
CreateYBank(2024.2379,1344.1517,10.8203);
CreateYBank(1512.8508,1488.1905,52.2783);
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
ydialog(playerid, dialogid, response, listitem, inputtext);
return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
ypickup(playerid);
return 1;
}
- sscanf you activated when you add following line to you server.cfg
For Windows server
Код:
plugins sscanf
Код:
plugins sscanf.so
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
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