• ply:StripWeapons() Function
    4 replies, posted
Hi im making a swep (ZipTie) and Im wondering how I would make a s Swep fuction for stripping weapons As in what code woud I use for stirpping weapons in a swep function
ply:StripWeapons("weapon_crowbar")
[CODE]ply:StripWeapon( string ) ply:StripWeapons( )[/CODE]
Guys, he means something along the lines of this, I believe. [lua]function SWEP:PrimaryAttack() local Trace = self.Owner:GetEyeTrace(); local e = Trace.Entity if IsValid(e) and e:IsPlayer() then Trace.Entity:StripWeapons() end end[/lua]
Thanks
Sorry, you need to Log In to post a reply to this thread.