Advertisement
Guest User

Untitled

a guest
May 25th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.24 KB | None | 0 0
  1. -- #NoSimplerr#
  2. local meta = FindMetaTable("Player");
  3. Prc = {}
  4. --[[
  5. Printers Revision: beta release
  6. ================================================================================================================================================================
  7. Prc.isVIP = {"superadmin", "admin", "moderator", "co-owner", "owner", "VIP"} // want more groups? add a coma and the usergroup, for example "vip", "goldvip", "premiumvip"
  8. General Configuration:
  9. Prc.Configurations = ( default: true, set false to disable improvements for the printers )
  10. Prc.VIPPrinters = ( default: true, set false to remove the VIP Money Printers from the TAB Menu)
  11. Prc.Borders = ( default: true, set false to remove printers borders )
  12. Prc.Glow = ( default: true, set false to remove glow effect while printing )
  13. Prc.Sparks = ( default: true, set false to remove sparks effect while printing )
  14. Prc.EnableNotification = ( default: true, set false to remove the message when you pickup the money from the printer )
  15. Prc.Notification = ( Notification before the "money amount" Ex: You've collected $(MoneyAmount) Notification2 )
  16. Prc.Notification2 = ( Notification after the "money amount" Ex: $(MoneyAmount) ! ( the ! is the notification2 )
  17. Prc.WaterDestroy = ( default: true, set false to avoid printers being destroyed by the water )
  18. Prc.EnableCPNotification = ( default: true, set false to remove the notification when the police destroy your printer )
  19. Prc.OwnerNotification = ( notification message for the owner, when the cops found the printer )
  20. Prc.CPMessage = ( If a cop try to get income of destroying their own entities a message will pop-up.)
  21. Prc.Collisions = ( IF True the printer will NO-COLLIDE with Players, IF False the printer will collide with Players )
  22. Prc.StealingSystem = Notify you if someone is stealing your printer
  23. Prc.StealingSystemShowIcon = Show the icons at the printer?
  24. Prc.SilencerShowIcon = Show the icons at the printer?
  25. Prc.SecurityIcon = Material("icon16/shield.png")
  26. Prc.SilencerIcon = Material("icon16/sound_mute.png")
  27. Prc.RocketMania = If you're using Rocket F4 you should turn this true ( if you are using the VIP Printers )
  28. Prc.StealingSystemMsg = The message for the user that is taking away your money
  29. Prc.Sound = Configure the Printing sound
  30. Prc.LevelSystem = false -- Set true if you want to give EXP, remember to configure the experience for each printer.
  31. Prc.LevelStatic = false -- Set it to true to give an static value, configurable at each printer, otherwise you will get a % of the money as exp.
  32. Prc.LevelPercent = 10 -- 10% of the printer money as experience if your printer have 100 money inside when you retrieve you will get 10 experience. Depending of the value you set, to make this work you must have Prc.LevelStatic disabled.
  33.  
  34. Printer Upgrades Configuration:
  35. Prc.Timer = (Prc.PrintInitialValue / Prc.Timer , Prc.PrintSecondValue / Prc.Timer ) - Time Upgrade ( Decrease the amount of time )
  36. Prc.Amount = ( Prc.PrintAmount * Prc.Amount ) ( Don't put HIGH Values Here ) - Amount Upgrade
  37. Prc.Armor = 2
  38. Prc.ArmorMaterial = "phoenix_storms/metalset_1-2"
  39. Prc.ArmorMateriale = true
  40.  
  41. Printers Configurations:
  42. ------------------------ F4 Customization
  43. Prc.PrinterEnable = true
  44. Prc.PrinterPrice = 1000
  45. Prc.PrinterMax = 2
  46. ------------------------ Printers Customziations
  47. Prc.PrinterPrice = ( Prite shown at F4 Menu Entities Tab )
  48. Prc.PrinterMax = ( Max amount of printers that you can OWN )
  49. Prc.F4Name = ( Printer Name at F4 Tab )
  50. Prc.PrinterName = ( Here you can set the money printer name )
  51. Prc.PrintAmount = ( Amount of money that the printers print )
  52. Prc.PrinterHealth = ( Set the health of the printer )
  53. Prc.PrinterModel = ( Model that you want to use with the money printer, default: )
  54. Prc.PrinterColor = ( Printer's Color )
  55. Prc.PrintInitialTime = ( Printers Initial Time , How much time takes to print the first time )
  56. Prc.PrintInitialValue = ( This is the first value of the math.random(This One, Second One), Less time to print money )
  57. Prc.PrintSecondValue = ( This is the second value of the math.random(First One, This One), Max time to print money )
  58. Prc.PrinterOverHeat = t( default: true, set false to avoid printers overheat ( explote because of overheating ) )
  59. Prc.PrinterOverHeatChance = ( Higher value, less probability of overheat. )
  60. Prc.PrinterCopsRemoval = ( default:false / set true so When a cop click "e" in the printer, the cop receive a good amount of money, and the printer dissapear )
  61. Prc.PrinterCopsRemovalGift = ( How much money receive the cop for destroying the money printer )
  62.  
  63. ================================================================================================================================================================
  64. ]]
  65.  
  66.  
  67. -- This function will add the VIP printers to this groups only.
  68. Prc.isVIP = {"superadmin", "admin", "VIP", "moderator", "owner", "co-owner"} // want more groups? add a coma and the usergroup, for example "vip", "goldvip", "premiumvip"
  69.  
  70. -- General Configuration ( Affect all the printers ):
  71. --------------------------------------------------------------------
  72. Prc.StealingSystem = true
  73. Prc.StealingSystemShowIcon = true
  74. Prc.SilencerShowIcon = true
  75. Prc.SecurityIcon = Material("icon16/shield.png")
  76. Prc.SilencerIcon = Material("icon16/sound_mute.png")
  77. Prc.RocketMania = false
  78. Prc.StealingSystemMsg = "Someone is stealing your money"
  79. Prc.Sound = "ambient/levels/labs/equipment_printer_loop1.wav"
  80. Prc.Configurations = true
  81. Prc.VIPPrinters = true
  82. Prc.Borders = true
  83. Prc.Sparks = true
  84. Prc.EnableNotification = true
  85. Prc.Notification = ("You've collected $")
  86. Prc.Notification2 = ("!")
  87. Prc.WaterDestroy = true
  88. Prc.EnableCPNotification = true
  89. Prc.OwnerNotification = ("Your Printer has been founded, be careful")
  90. Prc.CPMessage = ("Your printer has been removed without reward.")
  91. Prc.Collisions = true
  92. --------------------------------------------------------------------
  93.  
  94. -- Level System By Vrondakis
  95. --------------------------------------------------------------------
  96. Prc.LevelSystem = false -- Set true if you want to give EXP, remember to configure the experience for each printer. Example Printer 1 Config: Prc.PrinterExp = 250
  97. Prc.LevelStatic = false -- Set it to true to give an static value, configurable at each printer, otherwise you will get a % of the money as exp.
  98. Prc.LevelPercent = 10 -- 10% of the printer money as experience if your printer have 100 money inside when you retrieve you will get 10 experience. Depending of the value you set, to make this work you must have Prc.LevelStatic disabled.
  99. --------------------------------------------------------------------
  100.  
  101. -- Printer Upgrades Configuration ( Affect all the printers ):
  102. --------------------------------------------------------------------
  103. Prc.Timer = 1.2
  104. Prc.Amount = 1.5
  105. Prc.OverHeat = 10 // If you raise this value, the chance of overheating will be less, lets say the normal chance is 1 in 10, if you put this value to 10 the chance will be 1 in 100. its: ( PrinterOverHeatChance * Prc.OverHeat )
  106. Prc.Armor = 2 -- ( Damage / 2 )
  107. Prc.ArmorMaterial = "phoenix_storms/metalset_1-2"
  108. Prc.ArmorMateriale = true
  109. --------------------------------------------------------------------
  110.  
  111.  
  112. -- Printer 1:
  113. --------------------------------------------------------
  114. Prc.PrinterEnable = true
  115. Prc.PrinterPrice = 1000
  116. Prc.PrinterMax = 2
  117. --------------------------------------------------------
  118. Prc.PrinterName = "Money Printer"
  119. Prc.PrintAmount = 210
  120. Prc.PrinterExp = 250
  121. Prc.PrinterHealth = 100
  122. Prc.PrinterModel = "models/props_c17/consolebox01a.mdl"
  123. Prc.PrinterColor = Color(63,127,127,255)
  124. Prc.PrintInitialTime = 60
  125. Prc.PrintInitialValue = 60
  126. Prc.PrintSecondValue = 180
  127. Prc.PrinterOverHeat = true
  128. Prc.PrinterOverHeatChance = 100
  129. Prc.PrinterCopsRemoval = true
  130. Prc.PrinterCopsRemovalGift = 200
  131.  
  132. --------------------------------------------------------
  133.  
  134.  
  135. -- Printer 2:
  136. --------------------------------------------------------
  137. Prc.PrinterEnable2 = true
  138. Prc.PrinterPrice2 = 3000
  139. Prc.PrinterMax2 = 2
  140. --------------------------------------------------------
  141. Prc.PrinterName2 = "Bronze Money Printer"
  142. Prc.PrintAmount2 = 420
  143. Prc.PrinterExp2 = 350
  144. Prc.PrinterHealth2 = 100
  145. Prc.PrinterModel2 = "models/props_c17/consolebox01a.mdl"
  146. Prc.PrinterColor2 = Color(110,57,8,255)
  147. Prc.PrintInitialTime2 = 55
  148. Prc.PrintInitialValue2 = 55
  149. Prc.PrintSecondValue2 = 170
  150. Prc.PrinterOverHeat2 = true
  151. Prc.PrinterOverHeatChance2 = 90
  152. Prc.PrinterCopsRemoval2 = false
  153. Prc.PrinterCopsRemovalGift2 = 300
  154.  
  155. --------------------------------------------------------
  156.  
  157.  
  158. -- Printer 3:
  159. --------------------------------------------------------
  160. Prc.PrinterEnable3 = true
  161. Prc.PrinterPrice3 = 4000
  162. Prc.PrinterMax3 = 1
  163. --------------------------------------------------------
  164. Prc.PrinterName3 = "Silver Money Printer"
  165. Prc.PrintAmount3 = 750
  166. Prc.PrinterExp3 = 450
  167. Prc.PrinterHealth3 = 100
  168. Prc.PrinterModel3 = "models/props_c17/consolebox01a.mdl"
  169. Prc.PrinterColor3 = Color(160,160,160,255)
  170. Prc.PrintInitialTime3 = 50
  171. Prc.PrintInitialValue3 = 50
  172. Prc.PrintSecondValue3 = 160
  173. Prc.PrinterOverHeat3 = true
  174. Prc.PrinterOverHeatChance3 = 80
  175. Prc.PrinterCopsRemoval3 = false
  176. Prc.PrinterCopsRemovalGift3 = 400
  177. --------------------------------------------------------
  178.  
  179.  
  180. -- Printer 4:
  181. --------------------------------------------------------
  182. Prc.PrinterEnable4 = true
  183. Prc.PrinterPrice4 = 5000
  184. Prc.PrinterMax4 = 1
  185. --------------------------------------------------------
  186. Prc.PrinterName4 = "Gold Money Printer"
  187. Prc.PrintAmount4 = 950
  188. Prc.PrinterExp4 = 550
  189. Prc.PrinterHealth4 = 100
  190. Prc.PrinterModel4 = "models/props_c17/consolebox01a.mdl"
  191. Prc.PrinterColor4 = Color(200,151,15,255)
  192. Prc.PrintInitialTime4 = 45
  193. Prc.PrintInitialValue4 = 45
  194. Prc.PrintSecondValue4 = 150
  195. Prc.PrinterOverHeat4 = true
  196. Prc.PrinterOverHeatChance4 = 70
  197. Prc.PrinterCopsRemoval4 = false
  198. Prc.PrinterCopsRemovalGift4 = 500
  199. --------------------------------------------------------
  200.  
  201. -- Printer 5:
  202. --------------------------------------------------------
  203. Prc.PrinterEnable5 = true
  204. Prc.PrinterPrice5 = 7500
  205. Prc.PrinterMax5 = 1
  206. --------------------------------------------------------
  207. Prc.PrinterName5 = "Diamond Money Printer"
  208. Prc.PrintAmount5 = 1100
  209. Prc.PrinterExp5 = 650
  210. Prc.PrinterHealth5 = 100
  211. Prc.PrinterModel5 = "models/props_c17/consolebox01a.mdl"
  212. Prc.PrinterColor5 = Color(127,255,255,255)
  213. Prc.PrintInitialTime5 = 40
  214. Prc.PrintInitialValue5 = 40
  215. Prc.PrintSecondValue5 = 140
  216. Prc.PrinterOverHeat5 = true
  217. Prc.PrinterOverHeatChance5 = 60
  218. Prc.PrinterCopsRemoval5 = true
  219. Prc.PrinterCopsRemovalGift5 = 600
  220. --------------------------------------------------------
  221.  
  222. -- Printer 6:
  223. --------------------------------------------------------
  224. Prc.PrinterEnable6 = true
  225. Prc.PrinterPrice6 = 10000
  226. Prc.PrinterMax6 = 1
  227. --------------------------------------------------------
  228. Prc.PrinterName6 = "Graphene Money Printer"
  229. Prc.PrintAmount6 = 1500
  230. Prc.PrinterExp6 = 750
  231. Prc.PrinterHealth6 = 100
  232. Prc.PrinterModel6 = "models/props_c17/consolebox01a.mdl"
  233. Prc.PrinterColor6 = Color(32,32,32,255)
  234. Prc.PrintInitialTime6 = 35
  235. Prc.PrintInitialValue6 = 35
  236. Prc.PrintSecondValue6 = 130
  237. Prc.PrinterOverHeat6 = true
  238. Prc.PrinterOverHeatChance6 = 50
  239. Prc.PrinterCopsRemoval6 = true
  240. Prc.PrinterCopsRemovalGift6 = 700
  241. --------------------------------------------------------
  242.  
  243. -- VIP Money Printer 1:
  244. --------------------------------------------------------
  245. Prc.PrinterEnable7 = true
  246. Prc.PrinterPrice7 = 7800
  247. Prc.PrinterMax7 = 1
  248. --------------------------------------------------------
  249. Prc.PrinterName7 = "VIP Money Printer"
  250. Prc.PrintAmount7 = 1000
  251. Prc.PrinterExp7 = 750
  252. Prc.PrinterHealth7 = 100
  253. Prc.PrinterModel7 = "models/props_c17/consolebox01a.mdl"
  254. Prc.PrinterColor7 = Color(32,32,32,255)
  255. Prc.PrintInitialTime7 = 30
  256. Prc.PrintInitialValue7 = 30
  257. Prc.PrintSecondValue7 = 120
  258. Prc.PrinterOverHeat7 = true
  259. Prc.PrinterOverHeatChance7 = 40
  260. Prc.PrinterCopsRemoval7 = true
  261. Prc.PrinterCopsRemovalGift7 = 800
  262. --------------------------------------------------------
  263.  
  264. -- VIP Money Printer 2:
  265. --------------------------------------------------------
  266. Prc.PrinterEnable8 = true
  267. Prc.PrinterPrice8 = 9500
  268. Prc.PrinterMax8 = 1
  269. --------------------------------------------------------
  270. Prc.PrinterName8 = "Bronze VIP Money Printer"
  271. Prc.PrintAmount8 = 1500
  272. Prc.PrinterExp8 = 750
  273. Prc.PrinterHealth8 = 100
  274. Prc.PrinterModel8 = "models/props_c17/consolebox01a.mdl"
  275. Prc.PrinterColor8 = Color(110,57,8,255)
  276. Prc.PrintInitialTime8 = 25
  277. Prc.PrintInitialValue8 = 25
  278. Prc.PrintSecondValue8 = 110
  279. Prc.PrinterOverHeat8 = true
  280. Prc.PrinterOverHeatChance8 = 30
  281. Prc.PrinterCopsRemoval8 = true
  282. Prc.PrinterCopsRemovalGift8 = 900
  283. --------------------------------------------------------
  284.  
  285. -- VIP Money Printer 3:
  286. --------------------------------------------------------
  287. Prc.PrinterEnable9 = true
  288. Prc.PrinterPrice9 = 11500
  289. Prc.PrinterMax9 = 1
  290. --------------------------------------------------------
  291. Prc.PrinterName9 = "Silver VIP Money Printer"
  292. Prc.PrintAmount9 = 2100
  293. Prc.PrinterExp9 = 750
  294. Prc.PrinterHealth9 = 100
  295. Prc.PrinterModel9 = "models/props_c17/consolebox01a.mdl"
  296. Prc.PrinterColor9 = Color(160,160,160,255)
  297. Prc.PrintInitialTime9 = 20
  298. Prc.PrintInitialValue9 = 20
  299. Prc.PrintSecondValue9 = 100
  300. Prc.PrinterOverHeat9 = true
  301. Prc.PrinterOverHeatChance9 = 20
  302. Prc.PrinterCopsRemoval9 = true
  303. Prc.PrinterCopsRemovalGift9 = 1000
  304. --------------------------------------------------------
  305.  
  306. -- VIP Money Printer 4:
  307. --------------------------------------------------------
  308. Prc.PrinterEnable10 = true
  309. Prc.PrinterPrice10 = 12500
  310. Prc.PrinterMax10 = 1
  311. --------------------------------------------------------
  312. Prc.PrinterName10 = "Golden VIP Money Printer"
  313. Prc.PrintAmount10 = 3200
  314. Prc.PrinterExp10 = 750
  315. Prc.PrinterHealth10 = 100
  316. Prc.PrinterModel10 = "models/props_c17/consolebox01a.mdl"
  317. Prc.PrinterColor10 = Color(200,151,15,255)
  318. Prc.PrintInitialTime10 = 15
  319. Prc.PrintInitialValue10 = 15
  320. Prc.PrintSecondValue10 = 90
  321. Prc.PrinterOverHeat10 = true
  322. Prc.PrinterOverHeatChance10 = 20
  323. Prc.PrinterCopsRemoval10 = true
  324. Prc.PrinterCopsRemovalGift10 = 1100
  325. --------------------------------------------------------
  326.  
  327. function meta:isVIPMember()
  328. local UG = self:GetUserGroup()
  329. UG = string.lower(UG)
  330. for k,v in pairs(Prc.isVIP or {}) do
  331. if v == UG then
  332. return true
  333. end
  334. end
  335. return false
  336. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement