Try using these in your script.
function FreezeAI()
SendMessageF("freezeai",0)
end
function UnFreezeAI()
SendMessageF("unfreezeai",0)
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.