Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SWEP:PrimaryAttack()
- local player = self:GetOwner()
- local target = player:GetEyeTrace().Entity
- if (target:IsValid() and target:IsPlayer()) and IsFirstTimePredicted() then
- if (target.DarkRPVars.HasGunlicense) then
- player:ChatPrint(target:Name() .. " has a Gun License!", Color( 0, 255, 0, 255 ) )
- else
- player:ChatPrint(target:Name() .. " does not have a Gun License!", Color( 255, 0, 0, 255) )
- end
- end
- return ""
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement