Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. function mply:weaponflashlight( class )
  2.     if self:HasWeapon( class ) then
  3.         local wep = self:GetActiveWeapon( class )
  4.         if IsValid( wep ) and IsValid( self ) then
  5.             if self:GTeam() != TEAM_CLASSD or self:GTeam() != TEAM_SCI then return end         
  6.             if wep:GetClass() == nil then return end
  7.            
  8.             if wep.Base != "cw_base" then
  9.             self:AllowFlashlight(false) end
  10.             else
  11.             if wep.Base == "cw_base" then
  12.             self:AllowFlashlight(true) end
  13.         end
  14.     end
  15.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement