Create a script for User Manager Users

Dear Sir
I have around 130 users in user manager with one Profile ( traffic 8GB for 30days )
please i need a script to reset user counter each time a user exceed the 8gb traffic during 30 days or exceed the 30 days .

Thanks alot and best regards

Imad Baalbaki