Advertisement
Guest User

Untitled

a guest
Apr 6th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.64 KB | None | 0 0
  1. /*---------------------------------------------------------------------------
  2. DarkRP custom entities
  3. ---------------------------------------------------------------------------
  4.  
  5. This file contains your custom entities.
  6. This file should also contain entities from DarkRP that you edited.
  7.  
  8. Note: If you want to edit a default DarkRP entity, first disable it in darkrp_config/disabled_defaults.lua
  9. Once you've done that, copy and paste the entity to this file and edit it.
  10.  
  11. The default entities can be found here:
  12. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua#L111
  13.  
  14. Add entities under the following line:
  15. ---------------------------------------------------------------------------*/
  16. AddEntity("Piano", {
  17. ent = "gmt_instrument_piano",
  18. model = "models/fishy/furniture/piano.mdl",
  19. price = 1,
  20. max = 1,
  21. cmd = "buypiano",
  22. allowed = {TEAM_PIANIST}
  23. })
  24. DarkRP.createEntity("Plant Pot", {
  25. ent = "plant_pot",
  26. model = "models/drugplants/plantpot.mdl",
  27. price = 150,
  28. max = 3,
  29. cmd = "buyplantpot",
  30. allowed = {TEAM_DRUG}
  31. })
  32. DarkRP.createEntity("Weed Seed", {
  33. ent = "weed_seed",
  34. model = "models/katharsmodels/contraband/zak_wiet/zak_seed.mdl",
  35. price = 300,
  36. max = 3,
  37. cmd = "buyweedseed",
  38. allowed = {TEAM_DRUG}
  39. })
  40. if Prc.PrinterEnable then
  41. AddEntity(Prc.PrinterName, {
  42. ent = "money_printer0",
  43. model = "models/props_c17/consolebox01a.mdl",
  44. price = Prc.PrinterPrice,
  45. max = Prc.PrinterMax,
  46. cmd = "buymoneyprinter0"
  47. })
  48. end
  49.  
  50. if Prc.PrinterEnable2 then
  51. AddEntity(Prc.PrinterName2, {
  52. ent = "money_printer2",
  53. model = "models/props_c17/consolebox01a.mdl",
  54. price = Prc.PrinterPrice2,
  55. max = Prc.PrinterMax2,
  56. cmd = "buymoneyprinter2"
  57. })
  58. end
  59. if Prc.PrinterEnable3 then
  60. AddEntity(Prc.PrinterName3, {
  61. ent = "money_printer3",
  62. model = "models/props_c17/consolebox01a.mdl",
  63. price = Prc.PrinterPrice3,
  64. max = Prc.PrinterMax3,
  65. cmd = "buymoneyprinter3"
  66. })
  67. end
  68. if Prc.PrinterEnable4 then
  69. AddEntity(Prc.PrinterName4, {
  70. ent = "money_printer4",
  71. model = "models/props_c17/consolebox01a.mdl",
  72. price = Prc.PrinterPrice4,
  73. max = Prc.PrinterMax4,
  74. cmd = "buymoneyprinter4"
  75. })
  76. end
  77.  
  78. if Prc.PrinterEnable5 then
  79. AddEntity(Prc.PrinterName5, {
  80. ent = "money_printer5",
  81. model = "models/props_c17/consolebox01a.mdl",
  82. price = Prc.PrinterPrice5,
  83. max = Prc.PrinterMax5,
  84. cmd = "buymoneyprinter5"
  85. })
  86. end
  87.  
  88. if Prc.PrinterEnable6 then
  89. AddEntity(Prc.PrinterName6, {
  90. ent = "money_printer6",
  91. model = "models/props_c17/consolebox01a.mdl",
  92. price = Prc.PrinterPrice6,
  93. max = Prc.PrinterMax6,
  94. cmd = "buymoneyprinter6"
  95. })
  96. end
  97.  
  98. if Prc.VIPPrinters and not Prc.RocketMania then
  99.  
  100. if Prc.PrinterEnable7 then
  101. AddEntity(Prc.PrinterName7, {
  102. ent = "money_printer7",
  103. model = "models/props_c17/consolebox01a.mdl",
  104. price = Prc.PrinterPrice7,
  105. max = Prc.PrinterMax7,
  106. cmd = "buymoneyprinter7",
  107. customCheck = function(ply) return ply:isVIPMember() end,
  108. CustomCheckFailMsg = "This printer is VIP only!"
  109. })
  110. end
  111.  
  112. if Prc.PrinterEnable8 then
  113. AddEntity(Prc.PrinterName8, {
  114. ent = "money_printer8",
  115. model = "models/props_c17/consolebox01a.mdl",
  116. price = Prc.PrinterPrice8,
  117. max = Prc.PrinterMax8,
  118. cmd = "buymoneyprinter8",
  119. customCheck = function(ply) return ply:isVIPMember() end,
  120. CustomCheckFailMsg = "This printer is VIP only!"
  121. })
  122. end
  123.  
  124. if Prc.PrinterEnable9 then
  125. AddEntity(Prc.PrinterName9, {
  126. ent = "money_printer9",
  127. model = "models/props_c17/consolebox01a.mdl",
  128. price = Prc.PrinterPrice9,
  129. max = Prc.PrinterMax9,
  130. cmd = "buymoneyprinter9",
  131. customCheck = function(ply) return ply:isVIPMember() end,
  132. CustomCheckFailMsg = "This printer is VIP only!"
  133. })
  134. end
  135.  
  136. if Prc.PrinterEnable10 then
  137. AddEntity(Prc.PrinterName10, {
  138. ent = "money_printer10",
  139. model = "models/props_c17/consolebox01a.mdl",
  140. price = Prc.PrinterPrice10,
  141. max = Prc.PrinterMax10,
  142. cmd = "buymoneyprinter10",
  143. customCheck = function(ply) return ply:isVIPMember() end,
  144. CustomCheckFailMsg = "This printer is VIP only!"
  145. })
  146. end
  147.  
  148. elseif Prc.VIPPrinters and Prc.RocketMania then
  149.  
  150. if Prc.PrinterEnable7 then
  151. AddEntity(Prc.PrinterName7, {
  152. ent = "money_printer7",
  153. model = "models/props_c17/consolebox01a.mdl",
  154. price = Prc.PrinterPrice7,
  155. max = Prc.PrinterMax7,
  156. cmd = "buymoneyprinter7",
  157. VIPOnly = true
  158. })
  159. end
  160.  
  161. if Prc.PrinterEnable8 then
  162. AddEntity(Prc.PrinterName8, {
  163. ent = "money_printer8",
  164. model = "models/props_c17/consolebox01a.mdl",
  165. price = Prc.PrinterPrice8,
  166. max = Prc.PrinterMax8,
  167. cmd = "buymoneyprinter8",
  168. VIPOnly = true
  169. })
  170. end
  171.  
  172. if Prc.PrinterEnable10 then
  173. AddEntity(Prc.PrinterName9, {
  174. ent = "money_printer9",
  175. model = "models/props_c17/consolebox01a.mdl",
  176. price = Prc.PrinterPrice9,
  177. max = Prc.PrinterMax9,
  178. cmd = "buymoneyprinter9",
  179. VIPOnly = true
  180. })
  181. end
  182.  
  183. if Prc.PrinterEnable10 then
  184. AddEntity(Prc.PrinterName10, {
  185. ent = "money_printer10",
  186. model = "models/props_c17/consolebox01a.mdl",
  187. price = Prc.PrinterPrice10,
  188. max = Prc.PrinterMax10,
  189. cmd = "buymoneyprinter10",
  190. VIPOnly = true
  191. })
  192. end
  193. end
  194.  
  195. if Prc.Configurations then
  196. AddEntity("Printer Cooler", {
  197. ent = "printer_cooler",
  198. model = "models/props_lab/reciever01a.mdl",
  199. price = 1250,
  200. max = 10,
  201. cmd = "buycooler"
  202. })
  203.  
  204. AddEntity("Printer Speed", {
  205. ent = "printer_timer",
  206. model = "models/props_lab/reciever01a.mdl",
  207. price = 1250,
  208. max = 10,
  209. cmd = "buytimer"
  210. })
  211.  
  212. AddEntity("Printer Amount", {
  213. ent = "printer_amount",
  214. model = "models/props_lab/reciever01a.mdl",
  215. price = 1250,
  216. max = 10,
  217. cmd = "buyamount"
  218. })
  219.  
  220. AddEntity("Printer Silencer", {
  221. ent = "printer_silencer",
  222. model = "models/props_lab/reciever01a.mdl",
  223. price = 1250,
  224. max = 10,
  225. cmd = "buysilencer"
  226. })
  227.  
  228. AddEntity("Printer Armor", {
  229. ent = "printer_armor",
  230. model = "models/props_lab/reciever01a.mdl",
  231. price = 1250,
  232. max = 10,
  233. cmd = "buyarmor"
  234. })
  235. if Prc.StealingSystem then
  236. AddEntity("Printer Security", {
  237. ent = "printer_stealing",
  238. model = "models/props_lab/reciever01a.mdl",
  239. price = 1250,
  240. max = 10,
  241. cmd = "buysecurity"
  242. })
  243. end
  244. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement