Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- File: fn_shopJob.sqf
- Author: Kasper Rasmussen
- */
- if(has_job) exitWith {systemChat localize "STR_Has_Job";};
- if(side player != civilian) exitwith { systemChat localize "STR_Only_Civilians"; };
- if(uniform player find "U_C_Poloshirt_stripped" isEqualTo -1) exitwith {
- systemChat localize "STR_Need_Suit";
- };
- has_job = true;
- ShopJob = true;
- no_job = false;
- systemChat localize "STR_New_Job";
- if (ShopJob) then { hideObjectGlobal LSgeneralStore_npc };
- while{ ShopJob } do {
- uiSleep 10;
- if(Uniform player == "U_C_Poloshirt_stripped") then
- {
- life_cash = life_cash + 6000000;
- systemChat localize "STR_Job_Moneys";
- };
- checknpcdistance = true;
- while (checknpcdistance) do {
- if (player distance LSgeneralStore_npc < 20) then {
- Hint "Du er fyret din luder"
- };
- };
- };
- has_job = false;
- ShopJob = false;
- no_job = true;
- systemChat localize "STR_Job_Ended";
- if (no_job ) then { LSgeneralStore_npc hideObject false };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement