Sign in to follow this  
Volarific

sv_cheats is write protected

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this