Dwarfer Posted February 11, 2015 Report Share Posted February 11, 2015 Hi Guys, I am writing some mission stuff but seem to be having issues giving cash to players on completion. I do not seem to get any error messages using the following and from what I can tell it should work. Anyone got any comments on this ?? [['effectCrypto', "500"], owner _driver] call EPOCH_sendPublicVariableClient; Thanks Link to comment Share on other sites More sharing options...
0 nedfox Posted February 11, 2015 Report Share Posted February 11, 2015 You can also drop Krypto packages on the floor (find out how to do the location) _krypto = createVehicle ["Land_Money_F", _missionpos, [], 5, "None"]; //_missionpos is where the money should land, use your own _krypto setVariable ["cmoney", 1000, true]; //1000 krypto _krypto setVariable ["owner", "world", true]; //make public you should add some spread in the location, but that's pretty easy to figure out. Link to comment Share on other sites More sharing options...
0 Dwarfer Posted February 12, 2015 Author Report Share Posted February 12, 2015 nedfox Thanks for this, is there no way to just add it to the user then ?. I will give your idea a go anyway as giving to the user does not work anyway :-) Thanks **Edit. Tried this. Put the money on the floor but I am unable to pick it up. any other ideas ? Link to comment Share on other sites More sharing options...
0 nedfox Posted February 12, 2015 Report Share Posted February 12, 2015 There's some epoch variables, which I haven't looked into deeply, but : EPOCH_playerCrypto contains the amount of krypto on a player.. You can increase/decrease it, but linking the variable to a specific player I don't know howto. EPOCH_playerCrypto = EPOCH_playerCrypto + _amount; Link to comment Share on other sites More sharing options...
0 Liam Posted February 12, 2015 Report Share Posted February 12, 2015 _krypto = createVehicle["Land_MPS_EPOCH", getpos player,[],1.5,"CAN_COLLIDE"]; _krypto setVariable ["Crypto", 1000, true]; Dont know if the owner is needed but just try both. Link to comment Share on other sites More sharing options...
0 Dwarfer Posted February 12, 2015 Author Report Share Posted February 12, 2015 Yeah that's what I have done in the end. Just not exactly easy to spot. Does fill the gap for now Link to comment Share on other sites More sharing options...
Question
Dwarfer
Hi Guys,
I am writing some mission stuff but seem to be having issues giving cash to players on completion. I do not seem to get any error messages using the following and from what I can tell it should work. Anyone got any comments on this ??
[['effectCrypto', "500"], owner _driver] call EPOCH_sendPublicVariableClient;
Thanks
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