Advertisement
Guest User

Untitled

a guest
Dec 6th, 2013
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. /*
  2. File: fn_weaponShopCfg.sqf
  3. Author: Bryan "Tonic" Boardwine
  4.  
  5. Description:
  6. Master configuration file for the weapon shops.
  7.  
  8. Return:
  9. String: Close the menu
  10. Array:
  11. [Shop Name,
  12. [ //Array of items to add to the store
  13. [classname,Custom Name (set nil for default),price]
  14. ]]
  15. */
  16. private["_shop"];
  17. _shop = [_this,0,"",[""]] call BIS_fnc_param;
  18. if(_shop == "") exitWith {closeDialog 0}; //Bad shop type passed.
  19.  
  20. switch(_shop) do
  21. {
  22. case "cop_basic":
  23. {
  24. switch(true) do
  25. {
  26. case (playerSide != west): {"You are not a Cadet!"};
  27. case (life_coplevel < 1): {"You are not at a Cadet rank!"};
  28. default
  29. {
  30. ["Altis Cadet Cop Shop",
  31. [
  32. ["hgun_P07_snds_F","Stun Pistol",2000],
  33. ["hgun_P07_F",nil,7500],
  34. ["ToolKit",nil,250],
  35. ["FirstAidKit",nil,150],
  36. ["NVGoggles",nil,2000],
  37. ["16Rnd_9x21_Mag",nil,50],
  38. ]
  39. ];
  40. };
  41. };
  42. };
  43.  
  44. case "cop_patrol":
  45. {
  46. switch(true) do
  47. {
  48. case (playerSide != west): {"You are not a Police Officer!"};
  49. case (life_coplevel < 2): {"You are not at a Police officer rank!"};
  50. default
  51. {
  52. ["Altis Police Officer / Highway Patrol Shop",
  53. [
  54. ["hgun_Rook40_F",nil,2500],
  55. ["hgun_ACPC2_F",nil,3000],
  56. ["hgun_Pistol_heavy_01_F",nil,3250],
  57. ["SMG_02_F_F",nil,4000],
  58. ["acc_flashlight",nil,750],
  59. ["optic_ACO_grn",nil,2500],
  60. ["optic_ACO_grn",nil,2500],
  61. ["16Rnd_9x21_Mag",nil,150],
  62. ["9Rnd_45ACP_Mag",nil,200],
  63. ["11Rnd_45ACP_Mag",nil,200],
  64. ["30Rnd_9x21_Mag",nil,300],
  65. ]
  66. ];
  67. };
  68. };
  69. };
  70.  
  71. case "cop_swat":
  72. {
  73. switch(true) do
  74. {
  75. case (playerSide != west): {"You are not a SWAT Member!"};
  76. case (life_coplevel < 5): {"You are not at a SWAT Member rank!"};
  77. default
  78. {
  79. ["Altis SWAT Member Shop",
  80. [
  81. ["hgun_Pistol_heavy_02_F",nil,4000],
  82. ["arifle_MXC_F",nil,6000],
  83. ["arifle_MXM_F",nil,7500],
  84. ["optic_Holosight",nil,3500],
  85. ["optic_Hamr",nil,5000],
  86. ["6Rnd_45ACP_Cylinder",nil,500],
  87. ["30Rnd_65x39_caseless_mag",nil,750],
  88. ]
  89. ];
  90. };
  91. };
  92. };
  93.  
  94. case "cop_chief":
  95. {
  96. switch(true) do
  97. {
  98. case (playerSide != west): {"You are the Chief of Police!"};
  99. case (life_coplevel < 7): {"You are not at the Chief of Police rank!"};
  100. default
  101. {
  102. ["Altis Chief of Police Shop",
  103. [
  104. ["SMG_02_ACO_F",nil,15000],
  105. ["hgun_ACPC2_F",nil,17500],
  106. ["arifle_MXC_F",nil,30000],
  107. ["arifle_MXM_F",nil,50000],
  108. ["optic_MRCO",nil,10000],
  109. ["optic_Hamr",nil,15000],
  110. ["30Rnd_65x39_caseless_mag",nil,100],
  111. ["30Rnd_9x21_Mag",nil,60],
  112. ["9Rnd_45ACP_Mag",nil,200],
  113. ]
  114. ];
  115. };
  116. };
  117. };
  118.  
  119. case "rebel":
  120. {
  121. switch(true) do
  122. {
  123. case (playerSide != civilian): {"You are not a cop!"};
  124. case (!license_civ_rebel): {"You don't have a Gang training license!"};
  125. default
  126. {
  127. ["Jimbo da Hung Daddy's Shop",
  128. [
  129. ["arifle_TRG20_F",nil,25000],
  130. ["arifle_Katiba_F",nil,30000],
  131. ["srifle_EBR_F",nil,50000],
  132. ["optic_ACO_grn",nil,5000],
  133. ["optic_Hamr",nil,50000],
  134. ["acc_flashlight",nil,1000],
  135. ["30Rnd_9x21_Mag",nil,200],
  136. ["30Rnd_556x45_Stanag",nil,300],
  137. ["20Rnd_762x51_Mag",nil,500],
  138. ["30Rnd_65x39_caseless_green",nil,275],
  139. ]
  140. ];
  141. };
  142. };
  143. };
  144.  
  145. case "gun":
  146. {
  147. switch(true) do
  148. {
  149. case (playerSide != civilian): {"You are not a cop!"};
  150. case (!license_civ_gun): {"You don't have a Firearms license!"};
  151. default
  152. {
  153. ["Billy Joe's Firearms",
  154. [
  155. ["hgun_Rook40_F",nil,2500],
  156. ["hgun_PDW2000_F",nil,10000],
  157. ["optic_ACO_grn_smg",nil,2500],
  158. ["16Rnd_9x21_Mag",nil,25],
  159. ["30Rnd_9x21_Mag",nil,75],
  160. ]
  161. ];
  162. };
  163. };
  164. };
  165.  
  166. case "donator":
  167. {
  168. switch(true) do
  169. {
  170. case (life_donator == 0): {"You are not a donator!"};
  171. default
  172. {
  173. ["Donator Shop",
  174. [
  175. ["hgun_Rook40_F",nil,500],
  176. ["hgun_PDW2000_F",nil,6500],
  177. ["arifle_Mk20C_plain_F",nil,25000],
  178. ["optic_ACO_grn_smg",nil,750],
  179. ["optic_MRCO",nil,10000],
  180. ["ToolKit",nil,50],
  181. ["itemgps",nil,50],
  182. ["FirstAidKit",nil,25],
  183. ["16Rnd_9x21_Mag",nil,25],
  184. ["30Rnd_9x21_Mag",nil,75],
  185. ["30Rnd_556x45_Stanag",nil,125],
  186. ]
  187. ];
  188. };
  189. };
  190. };
  191.  
  192. case "genstore":
  193. {
  194. ["Altis General Store",
  195. [
  196. ["Binocular",nil,1000],
  197. ["ItemGPS",nil,2000],
  198. ["ToolKit",nil,5000],
  199. ["NVGoggles",nil,15000],
  200. ["Chemlight_red",nil,300],
  201. ["Chemlight_yellow",nil,300],
  202. ["Chemlight_green",nil,300],
  203. ["Chemlight_blue",nil,300],
  204. ]
  205. ];
  206. };
  207. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement