Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ New Weapon ]]--
- AddCSLuaFile()
- SWEP.PrintName = "GOLD M4A1"
- SWEP.Slot = 1
- SWEP.SlotPos = 1
- SWEP.HoldType = "ar2"
- SWEP.Base = "weapon_jb_base"
- SWEP.Category = "Jailbreak Weapons"
- SWEP.Spawnable = true
- SWEP.AdminSpawnable = true
- SWEP.ViewModel = "models/weapons/cstrike/c_rif_m4a1_gold.mdl"
- SWEP.WorldModel = "models/weapons/w_rif_m4a1_gold.mdl"
- SWEP.Weight = 3
- SWEP.AutoSwitchTo = true
- SWEP.AutoSwitchFrom = false
- SWEP.Primary.Sound = Sound("Weapon_M4A1.Single")
- SWEP.Primary.Recoil = 1
- SWEP.Primary.Damage = 26
- SWEP.Primary.NumShots = 1
- SWEP.Primary.Cone = 0.02
- SWEP.Primary.ClipSize = 30
- SWEP.Primary.Delay = 0.15
- SWEP.Primary.DefaultClip = 60
- SWEP.Primary.Automatic = true
- SWEP.Primary.ShootConeAdd = 0.0065;
- SWEP.Primary.Ammo = "smg1"
- SWEP.FakeIronSights = true;
- --[[ Pointshop Stuff ]]--
- ITEM.Name = 'Golden M4A1'
- ITEM.Price = 10000
- ITEM.Model = 'models/weapons/w_rif_ak47_gold.mdl'
- function ITEM:OnEquip(ply, modifications)
- while ply:IsAlive() do
- if !ply:IsSpec() then
- if ply:GetActiveWeapon() == "weapon_m4a1" do
- ply:Strip("weapon_m4a1")
- ply:Give("weapon_m4a1_gold")
- end
- end
- end
- end
- function ITEM:OnHolster(ply)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement