Meyson Posted February 25, 2017 Report Share Posted February 25, 2017 Greetings friends! Do not tell me how to make a charge of crypto every 30 minutes? How to register in the script this feature, which is on the similarity of the salary) vbawol 1 Link to comment Share on other sites More sharing options...
0 vbawol Posted February 26, 2017 Report Share Posted February 26, 2017 see server effect crypto function: https://github.com/EpochModTeam/Epoch/blob/dcfc352e717e9cfe8121e400e7d9de1387a85a69/Sources/epoch_server/compile/epoch_trading/EPOCH_server_effectCrypto.sqf#L16-L17 Link to comment Share on other sites More sharing options...
0 Meyson Posted March 3, 2017 Author Report Share Posted March 3, 2017 On 26.02.2017 at 7:16 PM, vbawol said: see server effect crypto function: https://github.com/EpochModTeam/Epoch/blob/dcfc352e717e9cfe8121e400e7d9de1387a85a69/Sources/epoch_server/compile/epoch_trading/EPOCH_server_effectCrypto.sqf#L16-L17 Hmmm not quite understand, could not explain? ( Link to comment Share on other sites More sharing options...
0 vbawol Posted March 4, 2017 Report Share Posted March 4, 2017 Run this server side to add 100 Crypto to all connected players: {[_x,100] call EPOCH_server_effectCrypto;} forEach allPlayers; Run this server side to remove 100 Crypto from all connected players: {[_x,-100] call EPOCH_server_effectCrypto;} forEach allPlayers; If you are looking to do something like this every X minutes you can use the Epoch Events scheduler by adding your own. 1 . Make a folder called "custom" in your mission folder and inside that folder make new .sqf file with the name "customEvent.sqf" and place your desired code to run server side inside. 2. Add the line below to your @EpochHive/epochconfig.hpp events[] array, just below this line: https://github.com/EpochModTeam/Epoch/blob/release/Server_Install_Pack/%40epochhive/epochconfig.hpp#L15 { 1800, "custom\customEvent.sqf", 0 , 0}, This will execVM your script every 1800 seconds (30 minutes). Meyson 1 Link to comment Share on other sites More sharing options...
0 Meyson Posted March 4, 2017 Author Report Share Posted March 4, 2017 Mmm customEvent.sqf created a file, it wrote {[_x, 100] call EPOCH_server_effectCrypto;} forEach allPlayers ;, {300 added, "custom \ customEvent.sqf", 0, 0}, and nothing .... please tell me that I do not so? Link to comment Share on other sites More sharing options...
0 vbawol Posted March 4, 2017 Report Share Posted March 4, 2017 Confirmed tested and working as a normal Epoch Event PaydayEvent for 0.5+:https://github.com/EpochModTeam/Epoch/commit/b695f2957739d58a6e5b9839927e2f42f183f8ef I can confirm it does add the Crypto after being connected for 30 minutes then again every 30 minutes after that. Check your editing the correct mission files and that you have waited in game after server startup for 30+ minutes. Drokz 1 Link to comment Share on other sites More sharing options...
Question
Meyson
Greetings friends! Do not tell me how to make a charge of crypto every 30 minutes? How to register in the script this feature, which is on the similarity of the salary)
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now