Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mply:weaponflashlight( class )
- if self:HasWeapon( class ) then
- local wep = self:GetActiveWeapon( class )
- if IsValid( wep ) and IsValid( self ) then
- if self:GTeam() != TEAM_CLASSD or self:GTeam() != TEAM_SCI then return end
- if wep:GetClass() == nil then return end
- if wep.Base != "cw_base" then
- self:AllowFlashlight(false) end
- else
- if wep.Base == "cw_base" then
- self:AllowFlashlight(true) end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement