Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function AddWeapon(tab)
- tab.UseText = "Equip"
- tab.OnUse = function(ply)
- ply:Give(tab.Class)
- end
- tab.Weight = tab.Weight or 10
- tab.Price = tab.Price or 800
- tab.IsWeapon = true
- tab.Color = Color(75, 119, 190)
- Items.New(tab)
- end
- local function AddAmmo(tab)
- tab.UseText = "Equip"
- tab.OnUse = function(ply)
- ply:GiveAmmo(tab.Amount, tab.AmmoType)
- end
- tab.Weight = 4
- tab.Price = tab.Price or 300
- tab.Color = Color(255, 0, 0)
- Items.New(tab)
- end
- local teamGun = {
- [2] = true
- }
- local teamBMD = {
- [4] = true
- }
- local teamAll = {
- [4] = true,
- [2] = true
- }
- AddAmmo({
- Name = "Rifle Ammunition",
- Weight = 3,
- Price = 110,
- AmmoType = "HRP Rifle Ammo",
- Amount = 30,
- Description = "30 rounds of rifle ammunition which are used for any rifle.",
- Model = "models/Items/BoxMRounds.mdl",
- Teams = {
- [6] = true,
- [7] = true,
- [4] = true,
- [2] = true
- }
- })
- AddAmmo({
- Name = "RPG",
- Weight = 4,
- Price = 500,
- AmmoType = "RPG_Round",
- Amount = 1,
- Description = "A single rocket propelled grenade.",
- Model = "models/weapons/w_missile_closed.mdl",
- Teams = {
- [4] = true
- }
- })
- AddAmmo({
- Name = "Pistol Ammunition",
- Weight = 1,
- Price = 100,
- AmmoType = "HRP Pistol Ammo",
- Amount = 24,
- Description = "24 rounds of pistol ammunition that can be used for pistols and revolvers.",
- Model = "models/Items/BoxSRounds.mdl",
- Teams = teamAll
- })
- AddAmmo({
- Name = "Shotgun Rounds",
- Weight = 2,
- Price = 105,
- AmmoType = "HRP Shotgun Ammo",
- Amount = 10,
- Description = "10 rounds of shotgun ammunition which fit all shotguns.",
- Model = "models/Items/BoxBuckshot.mdl",
- Teams = teamAll
- })
- AddWeapon({
- Name = "AK-47",
- Description = "The iconic Russian assault rifle, but this time with a Red Dot sight attached.",
- Weight = 14,
- Price = 1100,
- Class = "m9k_ak47",
- Model = "models/weapons/w_ak47_m9k.mdl",
- Teams = teamBMD
- })
- AddWeapon({
- Name = "AK-74",
- Description = "An updated version of the Ak-47 assault rifle.",
- Weight = 14,
- Price = 1000,
- Class = "m9k_ak74",
- Model = "models/weapons/w_tct_ak47.mdl",
- Teams = teamBMD
- })
- AddWeapon({
- Name = "PKM",
- Description = "A large russian LMG based around the AK.",
- Weight = 20,
- Price = 2200,
- Class = "m9k_pkm",
- Model = "models/weapons/w_mach_russ_pkm.mdl",
- Teams = teamBMD
- })
- AddWeapon({
- Name = "RPG-7",
- Description = "A russian rocket unguided rocket launcher.",
- Weight = 15,
- Price = 2000,
- Class = "m9k_rpg7",
- Model = "models/weapons/w_gdc_rpg7.mdl",
- Teams = teamBMD
- })
- AddWeapon({
- Name = "AMD 65",
- Description = "An illegal rifle with a very fast fire rate.",
- Weight = 15,
- Price = 1300,
- Class = "m9k_amd65",
- Model = "models/weapons/w_amd_65.mdl",
- Teams = teamBMD
- })
- AddWeapon({
- Name = "AN-94",
- Description = "An automatic assault rifle.",
- Weight = 14,
- Price = 1250,
- Class = "m9k_an94",
- Model = "models/weapons/w_rif_an_94.mdl",
- Teams = teamBMD
- })
- AddWeapon({
- Name = "Nerve Gas",
- Description = "Bottled mustard gas.",
- Weight = 2,
- Price = 1300,
- Class = "m9k_nerve_gas",
- Model = "models/weapons/w_40mm_grenade_launched.mdl",
- Teams = teamBMD
- })
- AddWeapon({
- Name = "AUG A3",
- Description = "An automatic rifle with a scope.",
- Weight = 18,
- Price = 1400,
- Class = "m9k_auga3",
- Model = "models/weapons/w_auga3.mdl",
- Teams = teamBMD
- })
- AddWeapon({
- Name = "F2000",
- Description = "A semi-automatic sniper rifle.",
- Weight = 22,
- Price = 1800,
- Class = "m9k_f2000",
- Model = "models/weapons/w_fn_f2000.mdl",
- Teams = teamBMD
- })
- AddWeapon({
- Name = "HK 416",
- Description = "An illegal automatic rifle.",
- Weight = 15,
- Price = 1300,
- Class = "m9k_m416",
- Model = "models/weapons/w_hk_416.mdl",
- Teams = teamBMD
- })
- // Pistols
- AddWeapon({
- Name = "Bizon PP19",
- Description = "The best SMG in CSGO.",
- Weight = 9,
- Price = 950,
- Class = "m9k_bizonp19",
- Model = "models/weapons/w_pp19_bizon.mdl",
- Teams = teamBMD
- })
- AddWeapon({
- Name = "Colt 1911",
- Description = "Possibly the most well known weapon in the world.",
- Weight = 4,
- Price = 500,
- Class = "m9k_colt1911",
- Model = "models/weapons/s_dmgf_co1911.mdl",
- Teams = teamGun
- })
- AddWeapon({
- Name = "HK-USC",
- Description = "A rather powerful SMG that shoots like a rifle!",
- Weight = 5,
- Price = 1300,
- Class = "m9k_usc",
- Model = "models/weapons/w_hk_usc.mdl",
- Teams = teamGun
- })
- AddWeapon({
- Name = "Remington7615P",
- Description = "The cheap hunting rifle that gets the job done.",
- Weight = 5,
- Price = 1400,
- Class = "m9k_remington7615p",
- Model = "models/weapons/w_remington_7615p.mdl",
- Teams = teamGun
- })
- AddWeapon({
- Name = "Desert Eagle",
- Description = "A motherfucking Deagle.",
- Weight = 5,
- Price = 600,
- Class = "m9k_deagle",
- Model = "models/weapons/w_tcom_deagle.mdl",
- Teams = teamGun
- })
- AddWeapon({
- Name = "HK MP5",
- Description = "A rapid firing SMG.",
- Weight = 10,
- Price = 970,
- Class = "m9k_mp5",
- Model = "models/weapons/w_hk_mp5.mdl",
- Teams = teamBMD
- })
- AddWeapon({
- Name = "MP9",
- Description = "A small and silenced SMG.",
- Weight = 7,
- Price = 1100,
- Class = "m9k_mp9",
- Model = "models/weapons/w_brugger_thomet_mp9.mdl",
- Teams= teamBMD
- })
- AddWeapon({
- Name = "Colt Python",
- Description = "A revolver.",
- Weight = 5,
- Price = 600,
- Class = "m9k_coltpython",
- Model = "models/weapons/w_colt_python.mdl",
- Teams = teamGun
- })
- AddWeapon({
- Name = "M92 Beretta",
- Description = "A semi-automatic pistol.",
- Weight = 4,
- Price = 550,
- Class = "m9k_m92beretta",
- Model = "models/weapons/w_beretta_m92.mdl",
- Teams = teamGun
- })
- AddWeapon({
- Name = "HK UMP45",
- Description = "An automatic SMG.",
- Weight = 7,
- Class = "m9k_ump45",
- Price = 800,
- Model = "models/weapons/w_hk_ump45.mdl",
- Teams = teamBMD
- })
- // Heavy
- AddWeapon({
- Name = "Remington 870",
- Description = "A pump shotgun that uses slugs.",
- Weight = 9,
- Price = 700,
- Class = "m9k_remington870",
- Model = "models/weapons/w_remington_870_tact.mdl",
- Teams = teamGun
- })
- AddWeapon({
- Name = "Benelli M3",
- Description = "A modern pump action shotgun.",
- Weight = 8,
- Price = 750,
- Class = "m9k_m3",
- Model = "models/weapons/w_benelli_m3.mdl",
- Teams = teamGun
- })
- AddWeapon({
- Name = "Double Barrel Shotgun",
- Description = "A shotgun with two barrels.",
- Weight = 9,
- Price = 450,
- Class = "m9k_dbarrel",
- Model = "models/weapons/w_double_barrel_shotgun.mdl",
- Teams = teamGun
- })
- AddWeapon({
- Name = "Winchester 1873",
- Description = "Lever action rifle.",
- Weight = 9,
- Price = 1000,
- Class = "m9k_winchester73",
- Model = "models/weapons/w_winchester_1873.mdl",
- Teams = teamGun
- })
- AddWeapon({
- Name = "SVD Dragunov",
- Description = "A high powered sniper rifle.",
- Weight = 22,
- Price = 1700,
- Class = "m9k_dragunov",
- Model = "models/weapons/w_svd_dragunov.mdl",
- Teams = teamBMD
- })
- AddWeapon({
- Name = "Lockpick",
- Description = "A lockpick. It picks locks.",
- Weight = 3,
- Price = 300,
- Class = "lockpick",
- Model = "models/weapons/w_crowbar.mdl",
- Teams = teamBMD
- })
- if (SERVER) then
- resource.AddWorkshop("128089118")
- resource.AddWorkshop("128091208")
- resource.AddWorkshop("128093075")
- resource.AddWorkshop("144982052") -- M9K Specialities
- elseif (CLIENT) then
- language.Add("HRP Rifle Ammo_ammo", "Rifle Ammunition")
- language.Add("HRP Shotgun Ammo_ammo", "Shotgun Rounds")
- language.Add("HRP Pistol Ammo_ammo", "Pistol and SMG Ammunition")
- end
- game.AddAmmoType({
- name = "HRP Rifle Ammo",
- dmgtype = DMG_BULLET
- })
- game.AddAmmoType({
- name = "HRP Pistol Ammo",
- dmgtype = DMG_BULLET
- })
- game.AddAmmoType({
- name = "HRP Shotgun Ammo",
- dmgtype = DMG_BUCKSHOT
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement