CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,689
Reaction score
2,805
Points
1,053
Hi everyone,
in this small thread you will found out how to disable the cheat commands (god, noclip, give) on a custom map or gamemode, developed with the black ops 3 mod tools. Credits for the code are going to natesmithzombies, Koan and DidUknowiPwn! Thank you for sharing it!

  • Navigate to your mapname.gsc. Example location: Call of Duty Black Ops III\usermaps\zm_mapname\scripts\zm
  • Scroll to the very bottom of the script and paste this function there:
  • Code:
    function disable_cheats()
    {
        ModVar( "god", 0 );
        ModVar( "demigod", 0 );
        ModVar( "noclip", 0 );
        ModVar( "ufo", 0 ); 
        ModVar( "give", 0 );
        ModVar( "notarget", 0 );
    }

  • Go back to the top of your mapname.gsc and find this:
    Code:
    function main()
    {
  • Underneath that, add the following code:
    Code:
    level disable_cheats();

Be sure to give credit if you are using this script.

Best regards,
CabCon :peace:!
 
Last edited:

Cxwh

Veteran
Messages
64
Reaction score
45
Points
568
Is calling level anti_cheat() a mistake? The functions name is disable_cheats() though
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,689
Reaction score
2,805
Points
1,053
Is calling level anti_cheat() a mistake? The functions name is disable_cheats() though
That was a mistake, thank you! I changed it. :smile:
 
Top