Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #include <macro.h>
  2. /*
  3. File: fn_initCop.sqf
  4. Author: Bryan "Tonic" Boardwine
  5.  
  6. Description:
  7. Cop Initialization file.
  8. */
  9. private["_end"];
  10. player addRating 9999999;
  11. waitUntil {!(isNull (findDisplay 46))};
  12. _end = false;
  13. if(life_blacklisted) exitWith
  14. {
  15. ["Blacklisted",false,true] call BIS_fnc_endMission;
  16. sleep 30;
  17. };
  18.  
  19. [] call life_fnc_spawnMenu;
  20. waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
  21. waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
  22.  
  23. [] spawn //basic cop
  24. {
  25. while {true} do
  26. {
  27. waitUntil {uniform player == "U_Rangemaster"};
  28. player setObjectTextureGlobal [0,"textures\Cadet.jpg"];
  29. waitUntil {uniform player != "U_Rangemaster"};
  30. };
  31. };
  32.  
  33. [] spawn //basic cop
  34. {
  35. while {true} do
  36. {
  37. waitUntil {uniform player == "U_Competitor"};
  38. player setObjectTextureGlobal [0,"textures\Uniform.jpg"];
  39. waitUntil {uniform player != "U_Competitor"};
  40. };
  41. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement