limiting user on total traffic quota

Hi,
how can i write a script to limit a user on total traffic i:e upload + download. If it exceeds the limit then the connection is to be disabled.
thanks

http://forum.mikrotik.com//viewtopic.php?t=308