I need help for disable AI in game this can be done from the dev console but I cannot enable this.

the commans is "g_ai" and his effect is this:

MW2 example

I searched the command in OllyDbg and found this:

(the command is a value ranging between 0 and 1.
1 is enable)

but I don't know that do with this
how I can disable?