Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. function SWEP:PrimaryAttack()
  2.  
  3.  
  4.  
  5. local player = self:GetOwner()
  6. local target = player:GetEyeTrace().Entity
  7.  
  8.  
  9. if (target:IsValid() and target:IsPlayer()) and IsFirstTimePredicted() then
  10. if (target.DarkRPVars.HasGunlicense) then
  11. player:ChatPrint(target:Name() .. " has a Gun License!", Color( 0, 255, 0, 255 ) )
  12. else
  13. player:ChatPrint(target:Name() .. " does not have a Gun License!", Color( 255, 0, 0, 255) )
  14. end
  15. end
  16.  
  17. return ""
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement