Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. if ( self:GetPickpocketTime() < CurTime() ) then
  2. self:SetPickpocketing( false )
  3.  
  4. if ( math.Rand( 0, 1 ) > self.PickpocketFailureChance ) then
  5. if ( self:GetPickpocketMode() == "money" ) then
  6. local money = math.random( 100 , 5000 )
  7. money = math.Clamp( money + 10 , 0 , self.PickpocketMax )
  8.  
  9.  
  10. if ( self.DarkRP25 ) then
  11. target:addMoney( -money )
  12. self.Owner:addMoney( money )
  13. else
  14. target:AddMoney( -money )
  15. self.Owner:AddMoney( money )
  16. end
  17.  
  18. self.Owner:PrintMessage( HUD_PRINTTALK, "Stole $" .. tostring( money ) .. "." )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement