Ok. so i got my money and shop working (here is the script if any one want to see it nothing to complex)
1.2.(this is were the fun happens)
Code:
if (Mymoney < 250) then
{
Hint "You do not have enough money";
} else {
Mymoney = Mymoney -250;
mygunlocker_1 addWeaponCargo ["AK_47_M", 1];
mygunlocker_1 addMagazineCargo ["30Rnd_762x39_AK47", 5];
Hint "You got an AKM and five mags";
};
What i need help with now is a give money command. This is what i have, can any one tell me how to fix it
Code:
_target = cursorTarget;
if (Mymoney < 250) then {
Mymoney = Mymoney - 250};
if (_target == !Alive) then {
_target Mymoney = Mymoney + 250};
Thank you in advance for help.