local money =
{
[ 1 ] = math.random ( 150, 400 ),
[ 2 ] = math.random ( 400, 600 ),
[ 3 ] = math.random ( 600, 800 ),
[ 4 ] = math.random ( 800, 1000 ),
[ 5 ] = math.random ( 800, 1000 ),
[ 6 ] = math.random ( 800, 1000 ),
}
addEventHandler ( "onPlayerDamage", getRootElement(),
function ( attacker, weapon, bodypart, loss )
givePlayerMoney ( attacker, money [ 1 ] )
end
)