Need some help for traffic limitation

I need a modified script to make a pop window to user exceeded 10 GB in one month to tell them that they exceeded the bandwidth limit and limit their speed to 32 kb/s

knowing that I use hotspot only with DHCP “no static IPs”

Also for scripting professionals, please provide me with some documentation to know how to write a mikrotik script and what programming language does it use, and where to get syntax and parameters and variables?


thanks a lot

http://wiki.mikrotik.com/wiki/Manual:Scripting
http://wiki.mikrotik.com/wiki/Manual:Scripting-examples