Advertisement
DarkSilencer

Untitled

Dec 29th, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. #include <macro.h>
  2. /*
  3. File: fn_clothing_cop.sqf
  4. Author: Bryan "Tonic" Boardwine
  5.  
  6. Description:
  7. Master config file for Cop clothing store.
  8. */
  9. private["_filter","_ret"];
  10. _filter = [_this,0,0,[0]] call BIS_fnc_param;
  11. //Classname, Custom Display name (use nil for Cfg->DisplayName, price
  12.  
  13. //Shop Title Name
  14. ctrlSetText[3103,"Altis Police Department Shop"];
  15.  
  16. _ret = [];
  17. switch (_filter) do
  18. {
  19. //Uniforms
  20. case 0:
  21. {
  22. _ret pushBack ["U_B_CombatUniform_mcam","Police Officer Uniform",0];
  23. if(license_cop_sniper || license_cop_swat) then
  24. {
  25. _ret pushBack ["U_B_SpecopsUniform_sgg","Police Tactical Uniform",0];
  26. };
  27.  
  28. if(__GETC__(life_coplevel) >= 4) then
  29. {
  30. _ret pushBack ["U_B_Wetsuit",nil,0];
  31. };
  32.  
  33. if(__GETC__(life_coplevel) >= 7) then
  34. {
  35. _ret pushBack ["U_B_survival_uniform","Coast Guard Uniform",0];
  36. _ret pushBack ["U_Rangemaster","Sheriff Uniform",0];
  37. };
  38. };
  39.  
  40. //Hats
  41. case 1:
  42. {
  43. if(license_cop_sniper) then
  44. {
  45. _ret pushBack ["H_HelmetB_camo",nil,0];
  46. };
  47.  
  48. if(__GETC__(life_coplevel) >= 2) then
  49. {
  50. _ret pushBack ["H_Cap_oli","Sheriff Hat",0];
  51. };
  52.  
  53. if(__GETC__(life_coplevel) >= 4) then
  54. {
  55. _ret pushBack ["H_Beret_blk_POLICE",nil,0];
  56. _ret pushBack ["H_CrewHelmetHeli_B","Gas Mask",0];
  57. };
  58.  
  59. if(__GETC__(life_coplevel) >= 5) then
  60. {
  61. _ret pushBack ["H_HelmetB_plain_blk",nil,0];
  62. };
  63.  
  64. if(__GETC__(life_coplevel) >= 6) then
  65. {
  66. _ret pushBack ["H_Watchcap_blk",nil,0];
  67. };
  68. };
  69.  
  70. //Glasses
  71. case 2:
  72. {
  73. _ret pushBack ["G_Aviator",nil,0];
  74. if(__GETC__(life_coplevel) >= 4) then
  75. {
  76. _ret pushBack ["G_Diving",nil,0];
  77. };
  78. };
  79.  
  80. //Vest
  81. case 3:
  82. {
  83. _ret pushBack ["V_Rangemaster_belt",nil,0];
  84. if(__GETC__(life_coplevel) >= 2) then
  85. {
  86. _ret pushBack ["V_TacVest_blk_POLICE","Police Vest",0];
  87. };
  88.  
  89. if(__GETC__(life_coplevel) >= 4) then
  90. {
  91. _ret pushBack ["V_RebreatherB",nil,0];
  92. };
  93.  
  94. if(__GETC__(life_coplevel) >= 5) then
  95. {
  96. _ret pushBack ["V_PlateCarrier1_blk",nil,0];
  97. };
  98. };
  99.  
  100. //Backpacks
  101. case 4:
  102. {
  103. _ret =
  104. [
  105. ["B_Carryall_cbr",nil,0]
  106. ];
  107. };
  108. };
  109.  
  110. _ret;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement