Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( self:GetPickpocketTime() < CurTime() ) then
- self:SetPickpocketing( false )
- if ( math.Rand( 0, 1 ) > self.PickpocketFailureChance ) then
- if ( self:GetPickpocketMode() == "money" ) then
- local money = math.random( 100 , 5000 )
- money = math.Clamp( money + 10 , 0 , self.PickpocketMax )
- if ( self.DarkRP25 ) then
- target:addMoney( -money )
- self.Owner:addMoney( money )
- else
- target:AddMoney( -money )
- self.Owner:AddMoney( money )
- end
- self.Owner:PrintMessage( HUD_PRINTTALK, "Stole $" .. tostring( money ) .. "." )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement