Advertisement
Guest User

fn_clothing_cop

a guest
May 28th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 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_Rangemaster","Cop Uniform",25];
  23. if(__GETC__(life_coplevel) > 1) then
  24. {
  25. _ret pushBack ["textures\Police\police_uniform.jpg",nil,0];
  26. _ret pushBack ["U_B_survival_uniform",nil,0];
  27. };
  28. if(__GETC__(life_coplevel) > 6) then
  29. {
  30. _ret pushBack ["textures\Police\constableuniform.jpg",nil,550];
  31. };
  32. };
  33.  
  34. //Hats
  35. case 1:
  36. {
  37. if(__GETC__(life_coplevel) > 1) then
  38. {
  39. _ret pushBack ["H_HelmetB_plain_mcamo",nil,75];
  40. _ret pushBack ["H_Booniehat_mcamo",nil,120];
  41. };
  42.  
  43. if(__GETC__(life_coplevel) > 6) then
  44. {
  45. _ret pushBack ["H_Beret_blk_POLICE",nil,0];
  46. };
  47. };
  48.  
  49. //Glasses
  50. case 2:
  51. {
  52. _ret =
  53. [
  54. ["G_Shades_Black",nil,25],
  55. ["G_Shades_Blue",nil,20],
  56. ["G_Sport_Blackred",nil,20],
  57. ["G_Sport_Checkered",nil,20],
  58. ["G_Sport_Blackyellow",nil,20],
  59. ["G_Sport_BlackWhite",nil,20],
  60. ["G_Aviator",nil,75],
  61. ["G_Squares",nil,10],
  62. ["G_Lowprofile",nil,30],
  63. ["G_Combat",nil,55]
  64. ];
  65. };
  66.  
  67. //Vest
  68. case 3:
  69. {
  70. _ret pushBack ["V_Rangemaster_belt",nil,800];
  71. if(__GETC__(life_coplevel) > 1) then
  72. {
  73. _ret pushBack ["V_PlateCarrier2_rgr",nil,1500];
  74. };
  75. };
  76.  
  77. //Backpacks
  78. case 4:
  79. {
  80. _ret =
  81. [
  82. ["B_Kitbag_cbr",nil,800],
  83. ["B_FieldPack_cbr",nil,500],
  84. ["B_AssaultPack_cbr",nil,700],
  85. ["B_Bergen_sgg",nil,2500],
  86. ["B_Carryall_cbr",nil,3500]
  87. ];
  88. };
  89. };
  90.  
  91. _ret;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement