Script has been implement.
It works like:
1) Check if the server is actually offline (Like the status bar on fgunz.net).
2) Check if the last restart was more than 5 minutes ago.
If so -> restart the anti-hack.
Note that it only works if someone is visiting the website after the server went offline.