Arma 3

Arma 3

檢視統計資料:
Back2TheFuture 2020 年 3 月 26 日 下午 7:06
Ingame Money system for server
What is the best way to make a fictive money system for a server where the players money is saved even if the server has been restarted?

I have made some basic scripts for Arma 3 but I have never tried to make a money script.

I have seen people take many different approaches to script a money system. I am still thinking about what the most perfect solution would be.

My questions are

1. Is there a basic script I can learn from?

2. How do I save money on the server?

3. Would you recommend a mod for this? If yes, what is the mod called?

4. How can I make a shop system?

5. Anything I need to do in order to stop players from cheating by manipulating their balance?

< >
目前顯示第 1-2 則留言,共 2
BlackHat 2020 年 3 月 30 日 上午 6:14 
Hello Sir,

What you are asking is quite complex but I will give you my best answer.
I am a full-stack dev and an Arma SQF dev.

To achieve the results that you want, you will need to interface the players with a database. This is done by the server. The money of a player would be stored with the players steamID in the database. This would happen for example whenever they joined and left the server. This could be achieved with an arma database tool called External Database 3 or exDB3. This allows for easy interfacing between SQL databases.

So to answer your questions:

1) I would recommend looking at the Altis Life mission file for code examples. This contains money systems and everything under the sun.

2) Interfacing with a SQL database via External DataBase 3. This would store the player SteamID with the money they had.

3) I would not recommend a mod. Most of this is done server-side via scripts and not via additional content.

4) This would be achieved by creating a GUI and a few scripts. When the player would click buy on an item displayed, the script would tell the database to remove x amount of money from the player's account. x here is the price of the item. The GUI could be built with default arma scripts. Search for arma GUIs for help. Once the money is subtracted, the server could simply just give the player said item.

5) You could set up a system that detects sudden changes in money. If this is the case, ban them. You could also have a system that compares their balance when they log in from when they logged out. If these are not the same, ban them.

Anyway, I hope this answered your question. If you require any help contact me on steam. I would be happy to help develop this system with you.

Good Luck!
Back2TheFuture 2020 年 3 月 30 日 上午 10:47 
Many thanks! I should be able to figure something out.
< >
目前顯示第 1-2 則留言,共 2
每頁顯示: 1530 50

張貼日期: 2020 年 3 月 26 日 下午 7:06
回覆: 2