Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.24 KB | None | 0 0
  1. --[[ New Weapon ]]--
  2.  
  3. AddCSLuaFile()
  4.  
  5. SWEP.PrintName          = "GOLD M4A1"          
  6.  
  7. SWEP.Slot               = 1
  8. SWEP.SlotPos            = 1
  9.      
  10. SWEP.HoldType           = "ar2"
  11. SWEP.Base               = "weapon_jb_base"
  12. SWEP.Category           = "Jailbreak Weapons"
  13.  
  14. SWEP.Spawnable          = true
  15. SWEP.AdminSpawnable     = true
  16.  
  17. SWEP.ViewModel          = "models/weapons/cstrike/c_rif_m4a1_gold.mdl"
  18. SWEP.WorldModel         = "models/weapons/w_rif_m4a1_gold.mdl"
  19.  
  20. SWEP.Weight             = 3
  21. SWEP.AutoSwitchTo       = true
  22. SWEP.AutoSwitchFrom     = false
  23.  
  24. SWEP.Primary.Sound          = Sound("Weapon_M4A1.Single")
  25. SWEP.Primary.Recoil         = 1
  26. SWEP.Primary.Damage         = 26
  27. SWEP.Primary.NumShots       = 1
  28. SWEP.Primary.Cone           = 0.02
  29. SWEP.Primary.ClipSize       = 30
  30. SWEP.Primary.Delay          = 0.15
  31. SWEP.Primary.DefaultClip    = 60
  32. SWEP.Primary.Automatic      = true
  33. SWEP.Primary.ShootConeAdd   = 0.0065;
  34. SWEP.Primary.Ammo           = "smg1"
  35.  
  36. SWEP.FakeIronSights = true;
  37.  
  38. --[[ Pointshop Stuff ]]--
  39.  
  40. ITEM.Name = 'Golden M4A1'
  41. ITEM.Price = 10000
  42. ITEM.Model = 'models/weapons/w_rif_ak47_gold.mdl'
  43.  
  44. function ITEM:OnEquip(ply, modifications)
  45.     while ply:IsAlive() do
  46.         if !ply:IsSpec() then
  47.             if ply:GetActiveWeapon() == "weapon_m4a1" do
  48.                 ply:Strip("weapon_m4a1")
  49.                 ply:Give("weapon_m4a1_gold")
  50.             end
  51.         end
  52.     end  
  53. end
  54.  
  55. function ITEM:OnHolster(ply)
  56. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement