Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.42 KB | None | 0 0
  1. /*--------------------------------------------------------------------------
  2. Author: Maverick Applications
  3. Website: https://maverick-applications.com
  4.  
  5. You're not allowed to use this file without permission from the author!
  6. ---------------------------------------------------------------------------*/
  7.  
  8. // Configuration file for the weaponshop
  9.  
  10. class maverick_weaponshop_cfg {
  11.  
  12. cashVar = "life_checkPPIN"; //--- Cash Variable
  13. cashSymbol = "$"; //--- Currency Symbol
  14. rotationSpeed = 2; //--- Rotation speed for item in preview (1 - 10)
  15. saveFunction = "[] call SOCK_fnc_updateRequest"; //--- Function to save gear etc. once items are purchased
  16.  
  17. class localization {
  18. //--- localization for hints etc.
  19. msgParamEmpty = "Shop Parameter is empty!";
  20. msgInVehicle = "You cannot be in a Vehicle!";
  21. msgShopExists = "Shop doesn't Exist!";
  22. msgCondition = "Not permitted to access this Shop!";
  23. msgCashOnHand = "Cash on Hand - %1%2";
  24. msgCartTotal = "Your Cart - %1%2";
  25. msgInfoTooltip = "--> HOLD YOUR LEFT MOUSE BUTTON DOWN WHILE MOVING MOUSE TO ROTATE WEAPON.\n--> DOUBLE CLICK ON AN ITEM IN THE CART TO REMOVE IT.\n--> USE THE 'OVERRIDE GEAR' CHECKBOX TO REPLACE WEAPONS ON HAND WITH PURCHASED WEAPONS.";
  26. msgInfoTooltip2 = "--> DOUBLE CLICK ON AN ITEM IN THE CART TO REMOVE IT.\n--> USE THE 'OVERRIDE GEAR' CHECKBOX TO REPLACE WEAPONS ON HAND WITH PURCHASED WEAPONS.";
  27. msgEmptyShop = "Nothing Found...";
  28. msgInfoText = "<t color='#FFFFFF'>Price:</t> <t color='%1'>%3%2</t>";
  29. msgCartFull = "Cart is Full";
  30. msgCartEmpty = "Cart is Empty";
  31. msgNotEnoughCash = "Not enough Cash for this Transaction";
  32. msgOverrideAlert = "Use the override feature to override gear!";
  33. msgTransactionComplete = "Purchase completed for %1%2";
  34. msgNotEnoughSpace = "You didn't have enough space for all the items. You however only paid for those you had space for!";
  35. msgClear = "Clear";
  36. msgSearch = "Search";
  37.  
  38. //--- localization for dialogs
  39. #define dialogTabWeapon "Weapon"
  40. #define dialogTabMagazines "Magazines"
  41. #define dialogTabAttachments "Attachments"
  42. #define dialogTabOther "Other"
  43. #define dialogAddBtn "Add"
  44. #define dialogOverrideTooltip "Override Gear"
  45. #define dialogCompleteBtn "Complete"
  46. #define dialogCloseBtn "Close"
  47. };
  48.  
  49. class shops {
  50. class example_shop {
  51. title = "Example Shop"; //--- Title of Shop
  52. condition = "true"; //--- Condition to meet to access shop
  53. simple = 0; //--- Type of GUI 0-Weapon View 1-No Weapon View
  54. maxCart = 20; //--- Max Amount of Items in Shopping Cart
  55.  
  56. weapons[] = {
  57. //--- item classname, price, condition, custom display name
  58. {"srifle_DMR_01_F", 500, "true", "Test"},
  59. {"srifle_EBR_F", 600, "true", "EBR"},
  60. {"launch_RPG32_F", 500, "true", ""},
  61. {"srifle_LRR_F", 600, "true", ""},
  62. {"hgun_Pistol_heavy_01_MRD_F", 1300, "true", ""}
  63. };
  64.  
  65. magazines[] = {
  66. {"10Rnd_762x54_Mag", 10, "true", "Test Mag"},
  67. {"20Rnd_762x51_Mag", 20, "true", "EBR Mag"}
  68. };
  69.  
  70. attachments[] = {
  71. {"optic_SOS", 50, "true", "Test Scope"},
  72. {"muzzle_snds_B", 1500, "true", ""}
  73. };
  74.  
  75. items[] = {
  76. {"Binocular", 50, "true", ""},
  77. {"NVGoggles", 100, "true", ""}, //--- NV goggles won't be shown on preview
  78. {"U_O_GhillieSuit", 100, "true", ""} //--- Clothing can also be sold but isn't guaranteed to be previewed - just make sure override checkbox is used to override clothing on player
  79. };
  80. };
  81.  
  82.  
  83.  
  84. //Medic Shops
  85. class med_basic {
  86. title = "Store";
  87. condition = "call life_mediclevel >= 1";
  88. simple = 0; //--- Type of GUI 0-Weapon View 1-No Weapon View
  89. maxCart = 20; //--- Max Amount of Items in Shopping Cart
  90.  
  91. weapons[] = {};
  92. magazines[] = {};
  93. attachments[] = {};
  94. items[] = {
  95. { "Binocular", 150, "call life_mediclevel >= 1", "" },
  96. { "ItemGPS", 100, "call life_mediclevel >= 1", "" },
  97. { "ItemMap", 50, "call life_mediclevel >= 1", "" },
  98. { "ItemCompass", 50, "call life_mediclevel >= 1", "" },
  99. { "ItemWatch", 50, "call life_mediclevel >= 1", "" },
  100. { "NVGoggles", 2000, "call life_mediclevel >= 1", "" },
  101. { "RS_ATF_Bandage_i", 200, "call life_mediclevel >= 1", "" },
  102. { "", 2000, "call life_mediclevel >= 1", "" },
  103. { "ToolKit", 2500, "call life_mediclevel >= 1", "" },
  104. { "tf_anprc148jem", 2000, "call life_mediclevel >= 1", "" }
  105. };
  106. };
  107.  
  108.  
  109. //Police Shops
  110. class police_kadet {
  111. title = "Kadet Shop";
  112. condition = "call life_coplevel >= 1";
  113. simple = 0;
  114. maxCart = 20;
  115.  
  116. weapons[] = {
  117. {"srifle_DMR_01_F", 500, "true", "Test"},
  118. {"srifle_EBR_F", 600, "true", "EBR"}
  119. };
  120.  
  121. magazines[] = {
  122. {"10Rnd_762x54_Mag", 10, "true", "Test Mag"},
  123. {"20Rnd_762x51_Mag", 20, "true", "EBR Mag"}
  124. };
  125.  
  126. attachments[] = {
  127. {"optic_SOS", 50, "true", "Test Scope"},
  128. {"muzzle_snds_B", 1500, "true", ""}
  129. };
  130.  
  131. items[] = {
  132. {"Binocular", 50, "true", ""},
  133. {"NVGoggles", 100, "true", ""}
  134. };
  135. };
  136.  
  137.  
  138. class police_betjent {
  139. title = "Kadet Shop";
  140. condition = "call life_coplevel >= 2";
  141. simple = 0;
  142. maxCart = 20;
  143.  
  144. weapons[] = {
  145. {"srifle_DMR_01_F", 500, "true", "Test"},
  146. {"srifle_EBR_F", 600, "true", "EBR"}
  147. };
  148.  
  149. magazines[] = {
  150. {"10Rnd_762x54_Mag", 10, "true", "Test Mag"},
  151. {"20Rnd_762x51_Mag", 20, "true", "EBR Mag"}
  152. };
  153.  
  154. attachments[] = {
  155. {"optic_SOS", 50, "true", "Test Scope"},
  156. {"muzzle_snds_B", 1500, "true", ""}
  157. };
  158.  
  159. items[] = {
  160. {"Binocular", 50, "true", ""},
  161. {"NVGoggles", 100, "true", ""}
  162. };
  163. };
  164.  
  165.  
  166. class police_assistent {
  167. title = "Kadet Shop";
  168. condition = "call life_coplevel >= 3";
  169. simple = 0;
  170. maxCart = 20;
  171.  
  172. weapons[] = {
  173. {"srifle_DMR_01_F", 500, "true", "Test"},
  174. {"srifle_EBR_F", 600, "true", "EBR"}
  175. };
  176.  
  177. magazines[] = {
  178. {"10Rnd_762x54_Mag", 10, "true", "Test Mag"},
  179. {"20Rnd_762x51_Mag", 20, "true", "EBR Mag"}
  180. };
  181.  
  182. attachments[] = {
  183. {"optic_SOS", 50, "true", "Test Scope"},
  184. {"muzzle_snds_B", 1500, "true", ""}
  185. };
  186.  
  187. items[] = {
  188. {"Binocular", 50, "true", ""},
  189. {"NVGoggles", 100, "true", ""}
  190. };
  191. };
  192.  
  193.  
  194. class police_kommis {
  195. title = "Kadet Shop";
  196. condition = "call life_coplevel >= 4";
  197. simple = 0;
  198. maxCart = 20;
  199.  
  200. weapons[] = {
  201. {"srifle_DMR_01_F", 500, "true", "Test"},
  202. {"srifle_EBR_F", 600, "true", "EBR"}
  203. };
  204.  
  205. magazines[] = {
  206. {"10Rnd_762x54_Mag", 10, "true", "Test Mag"},
  207. {"20Rnd_762x51_Mag", 20, "true", "EBR Mag"}
  208. };
  209.  
  210. attachments[] = {
  211. {"optic_SOS", 50, "true", "Test Scope"},
  212. {"muzzle_snds_B", 1500, "true", ""}
  213. };
  214.  
  215. items[] = {
  216. {"Binocular", 50, "true", ""},
  217. {"NVGoggles", 100, "true", ""}
  218. };
  219. };
  220.  
  221.  
  222. class police_viceinspek {
  223. title = "Kadet Shop";
  224. condition = "call life_coplevel >= 5";
  225. simple = 0;
  226. maxCart = 20;
  227.  
  228. weapons[] = {
  229. {"srifle_DMR_01_F", 500, "true", "Test"},
  230. {"srifle_EBR_F", 600, "true", "EBR"}
  231. };
  232.  
  233. magazines[] = {
  234. {"10Rnd_762x54_Mag", 10, "true", "Test Mag"},
  235. {"20Rnd_762x51_Mag", 20, "true", "EBR Mag"}
  236. };
  237.  
  238. attachments[] = {
  239. {"optic_SOS", 50, "true", "Test Scope"},
  240. {"muzzle_snds_B", 1500, "true", ""}
  241. };
  242.  
  243. items[] = {
  244. {"Binocular", 50, "true", ""},
  245. {"NVGoggles", 100, "true", ""}
  246. };
  247. };
  248.  
  249.  
  250. class police_chef {
  251. title = "Kadet Shop";
  252. condition = "call life_coplevel >= 5";
  253. simple = 0;
  254. maxCart = 20;
  255.  
  256. weapons[] = {
  257. {"srifle_DMR_01_F", 500, "true", "Test"},
  258. {"srifle_EBR_F", 600, "true", "EBR"}
  259. };
  260.  
  261. magazines[] = {
  262. {"10Rnd_762x54_Mag", 10, "true", "Test Mag"},
  263. {"20Rnd_762x51_Mag", 20, "true", "EBR Mag"}
  264. };
  265.  
  266. attachments[] = {
  267. {"optic_SOS", 50, "true", "Test Scope"},
  268. {"muzzle_snds_B", 1500, "true", ""}
  269. };
  270.  
  271. items[] = {
  272. {"Binocular", 50, "true", ""},
  273. {"NVGoggles", 100, "true", ""}
  274. };
  275. };
  276.  
  277.  
  278. class police_chef {
  279. title = "Kadet Shop";
  280. condition = "call life_coplevel >= 6";
  281. simple = 0;
  282. maxCart = 20;
  283.  
  284. weapons[] = {
  285. {"srifle_DMR_01_F", 500, "true", "Test"},
  286. {"srifle_EBR_F", 600, "true", "EBR"}
  287. };
  288.  
  289. magazines[] = {
  290. {"10Rnd_762x54_Mag", 10, "true", "Test Mag"},
  291. {"20Rnd_762x51_Mag", 20, "true", "EBR Mag"}
  292. };
  293.  
  294. attachments[] = {
  295. {"optic_SOS", 50, "true", "Test Scope"},
  296. {"muzzle_snds_B", 1500, "true", ""}
  297. };
  298.  
  299. items[] = {
  300. {"Binocular", 50, "true", ""},
  301. {"NVGoggles", 100, "true", ""}
  302. };
  303. };
  304. };
  305. };
  306. #include "gui\weapon_gui_master.cpp"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement