Guest User

Untitled

a guest
May 17th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 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. if(!(str(player) in ["cop_1","cop_2","cop_3","cop_4"])) then {
  20. if((__GETC__(life_coplevel) == 0) && (__GETC__(life_adminlevel) == 0)) then {
  21. ["NotWhitelisted",false,true] call BIS_fnc_endMission;
  22. sleep 35;
  23. };
  24. };
  25.  
  26.  
  27. player setVariable["rank",(__GETC__(life_coplevel)),true];
  28. [] call life_fnc_spawnMenu;
  29. waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
  30. waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
  31.  
  32. //Skins und Backpacks für Cops
  33. // CopLevel 1
  34. [] spawn
  35. {
  36. while {true} do
  37. {
  38. waitUntil {uniform player == "U_Rangemaster"};
  39. player setObjectTextureGlobal [0,"skins\human\cop\rekrut.jpg"];
  40. waitUntil {uniform player != "U_Rangemaster"};
  41. };
  42. };
  43. // CopLevel 2
  44. [] spawn
  45. {
  46. while {true} do
  47. {
  48. waitUntil {uniform player == "U_B_CombatUniform_mcam_vest"};
  49. player setObjectTextureGlobal [0,"skins\human\cop\polizei_uniform.jpg"];
  50. waitUntil {uniform player != "U_B_CombatUniform_mcam_vest"};
  51. };
  52. };
  53. // CopLevel 3+4
  54. [] spawn
  55. {
  56. while {true} do
  57. {
  58. waitUntil {uniform player == "U_B_SpecopsUniform_sgg"};
  59. player setObjectTextureGlobal [0,"skins\human\cop\polizei2.jpg"];
  60. waitUntil {uniform player != "U_B_SpecopsUniform_sgg"};
  61. };
  62. };
  63. // CopLevel 5
  64. [] spawn
  65. {
  66. while {true} do
  67. {
  68. waitUntil {uniform player == "U_B_CombatUniform_mcam"};
  69. player setObjectTextureGlobal [0,"skins\human\cop\sek.jpg"];
  70. waitUntil {uniform player != "U_B_CombatUniform_mcam"};
  71. };
  72. };
  73. // CopLevel 6
  74. [] spawn
  75. {
  76. while {true} do
  77. {
  78. waitUntil {uniform player == "U_B_CombatUniform_mcam_worn"};
  79. player setObjectTextureGlobal [0,"skins\human\cop\gsg9.paa"];
  80. waitUntil {uniform player != "U_B_CombatUniform_mcam_worn"};
  81. };
  82. };
  83. // CopBackPacks
  84. [] spawn
  85. {
  86. while {true} do
  87. {
  88. waitUntil {backpack player == "B_Bergen_mcamo"};
  89. (unitBackpack player) setObjectTextureGlobal [0,"skins\human\cop\polizeibag.jpg"];
  90. waitUntil {backpack player != "B_Bergen_mcamo"};
  91. };
  92. };
  93. //End CLothes
Advertisement
Add Comment
Please, Sign In to add comment