Code:
on *:text:!dollar:#:{ idollar }
on *:text:!resetdollar:#:{ rdollar }
alias rdollar { unset %dollar }
alias idollar {
  if (!%dollar || %dollar < 1000) { inc %dollar }
}


You personally can type: /idollar, to increase %dollar by one, if %dollar is 1000 (or more) it will not increase it. If you type: /rdollar, it will unset %dollar so that it holds no value.

If someone in a channel with you types: !dollar
This will increase %dollar by one, but not if it's 1,000 or more.

If someone in a channel with you types: !resetdollar
This will unset %dollar.