Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SWEP.PrintName = "Yuri Lock"
- SWEP.Author = "Yuri"
- SWEP.Contact = ""
- //SWEP.Purpose = ""
- SWEP.Instructions = ""
- SWEP.Spawnable = true
- SWEP.AdminOnly = false
- SWEP.WorldModel = ""
- SWEP.UseHands = true
- SWEP.Category = "Yuris Sweps"
- SWEP.Slot = 3
- SWEP.SlotPos = 2
- SWEP.Primary.ClipSize = -1
- SWEP.Primary.DefaultClip = 0
- SWEP.Primary.Automatic = false
- SWEP.Primary.Ammo = ""
- SWEP.Secondary.ClipSize = -1
- SWEP.Secondary.DefaultClip = 0
- SWEP.Secondary.Automatic = false
- SWEP.Secondary.Ammo = ""
- function SWEP:Initialize()
- self:SetHoldType("normal")
- self:SetRenderMode(4)
- self:SetColor(Color(255,255,255,0))
- end
- function SWEP:Deploy()
- end
- function SWEP:PreDrawViewModel()
- return true
- end
- function SWEP:Holster()
- return true
- end
- function SWEP:PrimaryAttack()
- is player check:
- local target = self:GetOwner():GetEyeTrace().Entity
- local ply = self:GetOwner()
- if not IsValid(target) or target:IsWorld() or not target:IsPlayer() then return end
- target:Lock()
- Player:ChatPrint("Du hast dein Ziel in Schockstarre versetzt!")
- end
- function SWEP:SecondaryAttack()
- is player check:
- local target = self:GetOwner():GetEyeTrace().Entity
- local ply = self:GetOwner()
- if not IsValid(target) or target:IsWorld() or not target:IsPlayer() then return end
- target:UnLock()
- Player:ChatPrint("Dein Ziel ist nun nicht mehr in der Schockstarre!")
- end
- end
- function SWEP:Reload()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement