Jump to content
  • 2

Salary


Meyson

Question

5 answers to this question

Recommended Posts

  • 0


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).

 

Link to comment
Share on other sites

  • 0

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.
 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...