How do I make pointshop give players in groups players when they get the rank?!

Ok so I just recently opened a Garry’s Mod TTT server, and I have to find out how to have pointshop give players points when they receive a vip rank or staff rank?!