Submitted by DS.Poker, this script sends your team a message (text and sound) when you paint a target with the targeting laser. It includes spam protection, so you won't have trouble if you sight a target twice in quick succession.
This is embedded in an updated ammocheck() function, which will make sure that your current weapon has ammo (when you try to fire), and if not, it will change to a weapon that does.