Posts: 51
Threads: 16
Joined: Apr 2015
Reputation:
0
So lets say i type /anticbugon
This turns the anticbug Filterscript on and /anticbugoff. this turns anti cbug off. Any help?
Posts: 253
Threads: 17
Joined: Jan 2014
Reputation:
0
CMD:anticbugon ....
{
SendRconCommand("loadfs anticbugon"); // replace anticbug on with your fs name
}
SendRconCommand("unloadfs anticbugon"); // to turn it off.
Posts: 51
Threads: 16
Joined: Apr 2015
Reputation:
0
Thanyou very much!!!
But how about this time I paste the anticbug system in to the gamemode. how could i disable or enable that.
Posts: 253
Threads: 17
Joined: Jan 2014
Reputation:
0
use bool type and when
bool antibug_state;
#define ANTIBUG_ON true
#define ANTIBUG_OFF false
cmd:toggleantibug
{
if(antibug_state==ANTIBUG_ON)
antibug_state=ANTIBUG_OFF;
else
antibug_state=ANTIBUG_ON;
}
cmd:antibugcmd
{
if(antibug_state==ANTIBUG_OFF) return 0; // return something or w/e or just do else and execute your code..
}