05.11.2016, 20:20
(
Last edited by TopShooter; 11/11/2016 at 06:12 PM.
)
System Information;
This system provides a new currency to the server and removes the old currency [Regular Money] however a lot were asking me to release this one and there we go, it's quiet simple but somehow useful. Currency of this system is called Coins, I was planning to edit it to SA Dollars or US Dollars but I had it set to coins because i'm working on a script that requires coins however it's quiet easy to edit the currency to US Dollars or something else instead of Coins.
Features
• Currency's value in textdraws.
• Saves when you leave, loads when you connect.
• Textdraws update every 500 miliseconds.
• Saves when you leave, loads when you connect.
• Textdraws update every 500 miliseconds.
Images
V0.1
V0.2
V0.3
V0.2
V0.3
Notes/Bugs
Note: This system doesn't use the "GivePlayerMoney" function.
There's no bugs were found till now, I also expect no bugs to be found however if you found any bugs, feel free to post a reply with the found bug.
There's no bugs were found till now, I also expect no bugs to be found however if you found any bugs, feel free to post a reply with the found bug.
Frequently Asked Questions
How to give somebody coins if this system doesn't use the GivePlayerMoney function?
• Simply use this function "GiveCoins(playerid, amount);" or this one to give only a coin "GiveOneCoin(playerid);"
How does it save the coins and loads them when a player connects?
• It checks if the player file exists in the Coins folder, if it doesn't exist it creates a new one and if it exists then it loads his coins.
• Simply use this function "GiveCoins(playerid, amount);" or this one to give only a coin "GiveOneCoin(playerid);"
How does it save the coins and loads them when a player connects?
• It checks if the player file exists in the Coins folder, if it doesn't exist it creates a new one and if it exists then it loads his coins.
Saving system
You got to create a new folder in your scriptfiles called "Coins" in-order to save the coins in each account, not creating this folder will cause the saving system not to work which means it won't save any coins.
Download;
http://pastebin.com/6fBAihP4V0.1
V0.2 - Textdraws were edited and look better now.
V0.3 - Updates listed below;- A bit improved the textdraws, not sure if they look better now.
- Fixed a bug within the coins updater.
- Removed useless functions.
V0.2 - Textdraws were edited and look better now.
V0.3 - Updates listed below;- A bit improved the textdraws, not sure if they look better now.
- Fixed a bug within the coins updater.
- Removed useless functions.