I am pretty confident in this snippet but it should be altered and morphed into common gameplay elements perhaps as a check and if a player fails the check it would report to RC and cripple gameplay elements.
If freezeplayer returned true the script could be simplified to just..
PHP Code:
if (!freezeplayer(0)) hackDetected();