Volarific 0 Report post Posted October 22, 2015 I'm trying to add a !cheats on command to my test mod and I'm using this code: if(!isDefined(args[2])) { tellPlayer("USAGE: !cheats "); return; } if(isDefined(args[2])) { if(args[2] == "on" args[2] == 1) { setDvar("sv_cheats", 1); tellPlayer("Cheats [^2ON^7]"); } else if(args[2] == "off" args[2] == 0) { setDvar("sv_cheats", 1); tellPlayer("Cheats [^1OFF^7]"); } } I think the indenting on that code broke but everytime I do !cheats on it will display the message in chat but then I get this on the server console (running 1.7a locally on my windows pc) sv_cheats is write protected. And I think from memory, this used to work, and since the devmap command was removed it creates other small problems Share this post Link to post Share on other sites
IJzzo 1,072 Report post Posted October 23, 2015 If you append to command line +set developer 1 You get your devmap command. Share this post Link to post Share on other sites