Jump to content
Sign in to follow this  
dachevs

SPON Workplace

Recommended Posts

Thank Spooner for the money script.

SPON Money

This is not a SPON Script.

An example use of script:

 [500, 50] execVM "Workplace.sqf"

Where 500 would be the paycheck pay, and 50 would be the bonus. These numbers can be changed to whatever you wish.

Also place a flag placed on the map called JobPoint.

Workplace.sqf

private ["_pay","_bonus","_time","_endMsg"];
_pay = _this select 0;
_bonus = _this select 1;
_time  = 120;

while {true} do
{
hint format ["Your paycheck arrives in %1 minute(s)" , _time / 60];
sleep 60;
hint format ["You paycheck arrives in %1 minute(s)" , (_time - 60) / 60];
sleep 60;

if (player distance (getPos JobPoint) <= 5) then
{
	_endMsg = format ["You earned $%1 this week and a bonus of $%2.];
	SPON_PlayerBankBalance = SPON_PlayerBankBalance + (_pay + _bonus);
}
else
{
	SPON_PlayerBankBalance = SPON_PlayerBankBalance + _pay;
	_endMsg = format ["You earned $%1." , _pay];
};

hint _endMsg;
};

Edited by DaChevs
Fixed

Share this post


Link to post
Share on other sites

Hey, Im trying to use this script with the SPON Money, and I'm getting 3 errors with it.

1. First error shows this as I'm starting up the mission , top left of loading screen.

'|#|}' Error Missing {

2. Second error is this. Top left at loading screne, just before mission.

'|#|Sleep 4;'

Error generic in Expression

3. Third, I believe it's tied to the other 2. When the mission starts up a hint at the top left says-

"bonus of $scalar bool array string 0xe0ffffef for working at Job1. You now have $scalar."

Please help me out with this. Thanks!

Share this post


Link to post
Share on other sites

Sry mate havent been on here for a while. Added a fixed version to the first post.

You of course also need to be running SPON Money for this script to change your bank values.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×