CapsAdmin

Untitled

Apr 7th, 2011
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. function PART:OnWeaponChanged(wep)
  2.     wep.pac_bones = pac.GetAllBones(wep)
  3.    
  4.     if not self.WeaponClass then return end
  5.    
  6.     if wep:GetClass():find(self.WeaponClass) then
  7.         self.Hide = false
  8.  
  9.         if self.HideWeaponClass then
  10.             wep:SetColor(255,255,255,0)
  11.             epoe.Print("hiding", wep:GetClass())
  12.         end
  13.        
  14.     else
  15.         self.Hide = true
  16.  
  17.         if self.HideWeaponClass then
  18.             wep:SetColor(255,255,255,255)
  19.             epoe.Print("showing", wep:GetClass())
  20.         end
  21.     end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment