Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.74 KB | None | 0 0
  1. DarkRP.createEntity("Apteczka", {
  2. ent = "item_healthkit",
  3. model = "models/weapons/w_medkit.mdl",
  4. price = 500,
  5. max = 1,
  6. cmd = "medkit",
  7. -- The following fields are OPTIONAL. If you do not need them, or do not need to change them from their defaults, REMOVE them.
  8. customCheck = function(ply) local amt = 0 for i,k in pairs(player.GetAll()) do if k:Team() == TEAM_MEDYK then amt = amt+1 end end if amt > 0 then return false end end,
  9. CustomCheckFailMsg = function(ply, entTable) return "Apteczka jest możliwa do kupienia tylko jak nie ma medyków!" end,
  10. })
  11.  
  12. DarkRP.createEntity("Amunicja do rewolwera", {
  13. ent = "m9k_ammo_357",
  14. model = "models/items/357ammo.mdl",
  15. price = 100,
  16. max = 10,
  17. cmd = "buyrewol",
  18. customCheck = function(ply) local amt = 0 for i,k in pairs(player.GetAll()) do if k:Team() == TEAM_GUN or k:Team() == TEAM_HEAVY then amt = amt+1 end end if amt > 0 then return false end end,
  19. CustomCheckFailMsg = function(ply, entTable) return "Jest juz ktos na gun dealerze! By kupic amunicje idz do gundealera" end,
  20. })
  21.  
  22. DarkRP.createEntity("Amunicja do karabinów", {
  23. ent = "m9k_ammo_ar2",
  24. model = "models/Items/BoxSRounds.mdl",
  25. price = 165,
  26. max = 10,
  27. cmd = "buykarab",
  28. customCheck = function(ply) local amt = 0 for i,k in pairs(player.GetAll()) do if k:Team() == TEAM_GUN or k:Team() == TEAM_HEAVY then amt = amt+1 end end if amt > 0 then return false end end,
  29. CustomCheckFailMsg = function(ply, entTable) return "Jest juz ktos na gun dealerze! By kupic amunicje idz do gundealera" end,
  30. })
  31.  
  32. DarkRP.createEntity("Amunicja do shotgunów", {
  33. ent = "m9k_ammo_buckshot",
  34. model = "models/Items/BoxBuckshot.mdl",
  35. price = 140,
  36. max = 10,
  37. cmd = "buykarab",
  38. customCheck = function(ply) local amt = 0 for i,k in pairs(player.GetAll()) do if k:Team() == TEAM_GUN or k:Team() == TEAM_HEAVY then amt = amt+1 end end if amt > 0 then return false end end,
  39. CustomCheckFailMsg = function(ply, entTable) return "Jest juz ktos na gun dealerze! By kupic amunicje idz do gundealera" end,
  40. })
  41.  
  42. DarkRP.createEntity("Amunicja do pistoletów", {
  43. ent = "m9k_ammo_pistol",
  44. model = "models/Items/BoxMRounds.mdl",
  45. price = 80,
  46. max = 10,
  47. cmd = "buypist",
  48. customCheck = function(ply) local amt = 0 for i,k in pairs(player.GetAll()) do if k:Team() == TEAM_GUN or k:Team() == TEAM_HEAVY then amt = amt+1 end end if amt > 0 then return false end end,
  49. CustomCheckFailMsg = function(ply, entTable) return "Jest juz ktos na gun dealerze! By kupic amunicje idz do gundealera" end,
  50. })
  51.  
  52. DarkRP.createEntity("Amunicja do snajperek", {
  53. ent = "m9k_ammo_sniper_rounds",
  54. model = "models/Items/BoxSRounds.mdl",
  55. price = 170,
  56. max = 10,
  57. cmd = "buysnaj",
  58. customCheck = function(ply) local amt = 0 for i,k in pairs(player.GetAll()) do if k:Team() == TEAM_GUN or k:Team() == TEAM_HEAVY then amt = amt+1 end end if amt > 0 then return false end end,
  59. CustomCheckFailMsg = function(ply, entTable) return "Jest juz ktos na gun dealerze! By kupic amunicje idz do gundealera" end,
  60. })
  61.  
  62. DarkRP.createEntity("Amunicja do SMG", {
  63. ent = "m9k_ammo_smg",
  64. model = "models/Items/BoxMRounds.mdl",
  65. price = 125,
  66. max = 10,
  67. cmd = "buysmg",
  68. customCheck = function(ply) local amt = 0 for i,k in pairs(player.GetAll()) do if k:Team() == TEAM_GUN or k:Team() == TEAM_HEAVY then amt = amt+1 end end if amt > 0 then return false end end,
  69. CustomCheckFailMsg = function(ply, entTable) return "Jest juz ktos na gun dealerze! By kupic amunicje idz do gundealera" end,
  70. })
  71.  
  72.  
  73. DarkRP.createEntity("Amunicja do Winchestera", {
  74. ent = "m9k_ammo_winchester",
  75. model = "models/Items/BoxSRounds.mdl",
  76. price = 145,
  77. max = 10,
  78. cmd = "buywinch",
  79. customCheck = function(ply) local amt = 0 for i,k in pairs(player.GetAll()) do if k:Team() == TEAM_GUN or k:Team() == TEAM_HEAVY then amt = amt+1 end end if amt > 0 then return false end end,
  80. CustomCheckFailMsg = function(ply, entTable) return "Jest juz ktos na gun dealerze! By kupic amunicje idz do gundealera" end,
  81. })
  82.  
  83.  
  84. DarkRP.createShipment("M249 Para", {model = "models/weapons/3_mach_m249para.mdl",entity = "bb_m249_alt",price = 105000,amount = 10,separate = true,pricesep = 12500,noship = false,allowed = {TEAM_HEAVY}})
  85. DarkRP.createShipment("Granat Fragmentacyjny", {model = "models/weapons/w_m61_fraggynade_thrown.mdl",entity = "bb_cssfrag_alt",price = 105000,amount = 10,separate = true,pricesep = 5000,noship = true,allowed = {TEAM_HEAVY}})
  86. DarkRP.createShipment("Glock-18", {model = "models/weapons/3_pist_glock18.mdl",entity = "bb_glock_alt",price = 18000,amount = 10,separate = true,pricesep = 2000,noship = false,allowed = {TEAM_HEAVY}})
  87. DarkRP.createShipment("Steyr AUG", {model = "models/weapons/3_rif_aug.mdl",entity = "bb_aug_alt",price = 35000,amount = 10,separate = true,pricesep = 3800,noship = false,allowed = {TEAM_HEAVY}})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement