Advertisement
Guest User

Untitled

a guest
May 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. /*
  2. File: fn_shopJob.sqf
  3. Author: Kasper Rasmussen
  4. */
  5. if(has_job) exitWith {systemChat localize "STR_Has_Job";};
  6. if(side player != civilian) exitwith { systemChat localize "STR_Only_Civilians"; };
  7.  
  8. if(uniform player find "U_C_Poloshirt_stripped" isEqualTo -1) exitwith {
  9. systemChat localize "STR_Need_Suit";
  10. };
  11.  
  12. has_job = true;
  13. ShopJob = true;
  14. no_job = false;
  15.  
  16. systemChat localize "STR_New_Job";
  17. if (ShopJob) then { hideObjectGlobal LSgeneralStore_npc };
  18.  
  19. while{ ShopJob } do {
  20. uiSleep 10;
  21. if(Uniform player == "U_C_Poloshirt_stripped") then
  22. {
  23. life_cash = life_cash + 6000000;
  24. systemChat localize "STR_Job_Moneys";
  25. };
  26. checknpcdistance = true;
  27. while (checknpcdistance) do {
  28. if (player distance LSgeneralStore_npc < 20) then {
  29. Hint "Du er fyret din luder"
  30. };
  31. };
  32. };
  33. has_job = false;
  34. ShopJob = false;
  35. no_job = true;
  36. systemChat localize "STR_Job_Ended";
  37. if (no_job ) then { LSgeneralStore_npc hideObject false };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement