Guest User

Untitled

a guest
Aug 24th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 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.  
  11. _neededCopLevel = 1; //Benötigtes CopLevel für slots 4 bis 28
  12.  
  13. player addRating 9999999;
  14. waitUntil {!(isNull (findDisplay 46))};
  15. _end = false;
  16. if(life_blacklisted) exitWith
  17. {
  18. ["Blacklisted",false,true] call BIS_fnc_endMission;
  19. sleep 30;
  20. };
  21.  
  22. if((str(player) in ["cop_1","cop_2","cop_3"])) then {
  23. if((__GETC__(life_adminlevel) != 3)) then {
  24. ["Only4Admins",false,true] call BIS_fnc_endMission;
  25. sleep 30;
  26. [] call life_fnc_copDefault;
  27. };
  28. };
  29.  
  30. if((str(player) in ["cop_4","cop_5","cop_6","cop_7","cop_8","cop_9","cop_10","cop_11","cop_12","cop_13","cop_14","cop_15","cop_16","cop_17","cop_18","cop_19","cop_20","cop_21","cop_22","cop_23","cop_24","cop_25","cop_26","cop_27","cop_28"])) then {
  31. if((__GETC__(life_coplevel) < _neededCopLevel) || (__GETC__(life_adminlevel) < 1)) then {
  32. ["Only4Whitelisted",false,true] call BIS_fnc_endMission;
  33. sleep 30;
  34. };
  35. };
  36.  
  37. switch(__GETC__(life_coplevel)) do
  38. {
  39. case 1: {life_paycheck = life_paycheck + 1000;};
  40. case 2: {life_paycheck = life_paycheck + 3000;};
  41. case 3: {life_paycheck = life_paycheck + 5000;};
  42. case 4: {life_paycheck = life_paycheck + 8500;};
  43. case 5: {life_paycheck = life_paycheck + 12500;};
  44. case 6: {life_paycheck = life_paycheck + 25000;};
  45. case 7: {life_paycheck = life_paycheck + 50000;};
  46.  
  47. };
  48.  
  49. player setVariable["coplevel", __GETC__(life_coplevel), true];
  50.  
  51. [] call life_fnc_spawnMenu;
  52. waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
  53. waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
  54.  
  55. [] spawn
  56. {
  57. while {true} do
  58. {
  59. waitUntil {uniform player == "U_Rangemaster"};
  60. player setObjectTextureGlobal [0,"textures\recruit_uniform_rangemaster.jpg"];
  61. waitUntil {uniform player != "U_Rangemaster"};
  62. };
  63. };
  64.  
  65. [] spawn
  66. {
  67. while {true} do
  68. {
  69. waitUntil {uniform player == "U_B_CombatUniform_mcam_vest"};
  70. player setObjectTextureGlobal [0,"textures\cop_officer.jpg"];
  71. waitUntil {uniform player != "U_B_CombatUniform_mcam_vest"};
  72. };
  73. };
  74.  
  75. [] spawn
  76. {
  77. while {true} do
  78. {
  79. waitUntil {uniform player == "U_B_SpecopsUniform_sgg"};
  80. player setObjectTextureGlobal [0,"textures\sek_uniform.paa"];
  81. waitUntil {uniform player != "U_B_SpecopsUniform_sgg"};
  82. };
  83. };
  84.  
  85. [] spawn
  86. {
  87. while {true} do
  88. {
  89. waitUntil {uniform player == "U_B_CombatUniform_mcam"};
  90. player setObjectTextureGlobal [0,"textures\cop_captain.jpg"];
  91. waitUntil {uniform player != "U_B_CombatUniform_mcam"};
  92. };
  93. };
Advertisement
Add Comment
Please, Sign In to add comment