I've been working with some scripts, and here is what I have so far:
My purchase script (purchase.sqf):
_cash = cash
?(_cash < 200):goto "cantafford"
"Tractor" createvehicle getpos GL1;
cash = _cash - 200
hint format["Money: $%1", cash]
exit
#cantafford
_this sidechat "You dont have enough money!"
exit
My money display script (display.sqf):
cash = _this select 0
hint format["Money: $%1",cash]
exit
My money system script (money.sqf):
_player = _this select 0
cash = 500
?(local Server): [cash] exec "display.sqf"
exit
My profit script (Gain.sqf):
_cash = cash
cash = _cash + 200
hint format["Money: $%1", cash]
exit
However, I have to label a character ingame, called "P1" for it to work. How do I make it so that it works for more than one person, and how do I make it specifically for a single person such as purchasing and profits?