Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MoneyList = {}
- hook.Add( "HUDPaint", "DrawMoney", function()
- for k, v in pairs( MoneyList ) do
- v[1] = v[1] - 1
- v[4] = v[4] - 1
- draw.SimpleText( "+" .. v[3], "ScoreboardText", v[1], v[2], Color( 0, 255, 0, v[4] ) )
- if ( v[4] == 0 ) then table.remove( MoneyList, k ) end
- end
- end )
- local function AddMoney( x, y, amount )
- table.insert( MoneyList, { x, y, amount, 255 } )
- end
Add Comment
Please, Sign In to add comment