How to turn Filterscript on/off by command, no rcon!
#4

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..
}
Reply


Messages In This Thread
How to turn Filterscript on/off by command, no rcon! - by Beasthian - 29.11.2015, 01:22
Re: How to turn Filterscript on/off by command, no rcon! - by Golimad - 29.11.2015, 01:32
Re: How to turn Filterscript on/off by command, no rcon! - by Beasthian - 29.11.2015, 01:46
Re: How to turn Filterscript on/off by command, no rcon! - by Golimad - 02.12.2015, 01:31
Re: How to turn Filterscript on/off by command, no rcon! - by gurmani11 - 02.12.2015, 07:47

Forum Jump:


Users browsing this thread: 1 Guest(s)