Ok,
The game screen will take care of the "points for buyin" and "points for hits", just make sure you enter the corresponding values in the game options.
The formula for giving 3 points for every rank is: (n-r)*3 (this is if you want your last player to get 0 pts otherwise you have to use ((n-r)+1)*3 then EVERYBODY will get at least 3 points.
The formula for "in the money" bonuses is: if(r<=mr, if(r=mr, 5, (mr-r)*10), 0) which reads, if the Rank is below MoneyRank add 0 else if the Rank is equal to MoneyRank then add 5 points else add the subtraction of the actual Rank from the MoneyRank and multilply by 10.
So the end formula should be:
(n-r)*3 + if(r<=mr, if(r=mr, 5, (mr-r)*10), 0)
HTH
Lafrog