Author Topic: Disable-ing commands  (Read 931 times)

0 Members and 1 Guest are viewing this topic.

Offline BRADEN

  • Camper
  • ***
  • Posts: 319
Disable-ing commands
« on: March 14, 2008, 01:13:49 pm »
Is it possible to write one command that has the ability to disable all the others?

And can you write it again to enable?

Death is the solution to all problems. No man; no problem.
-Joseph Stalin

Offline Laser Guy

  • Veteran
  • *****
  • Posts: 1679
Re: Disable-ing commands
« Reply #1 on: March 14, 2008, 01:19:22 pm »
Not that I herd of any, no.
Text goes here...

Offline Boblekonvolutt

  • Soldier
  • **
  • Posts: 222
  • "YOU are a CAR."
Re: Disable-ing commands
« Reply #2 on: March 15, 2008, 12:36:23 am »
What exactly is "all the others"?

Offline BRADEN

  • Camper
  • ***
  • Posts: 319
Re: Disable-ing commands
« Reply #3 on: March 15, 2008, 01:15:09 am »
commands

Death is the solution to all problems. No man; no problem.
-Joseph Stalin

Offline ghg

  • Camper
  • ***
  • Posts: 411
  • Village Idiot
Re: Disable-ing commands
« Reply #4 on: March 15, 2008, 06:03:11 am »
Possible by using a variable and checking if commands are disabled in the other commands.
-=Gradius wuz you=-

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1904
Re: Disable-ing commands
« Reply #5 on: March 17, 2008, 09:02:18 am »
Yes, it is. Disable all commands if some variable is set to true (change the return value of OnPlayerCommand and OnCommand), with the exception of the command that'll enable them again, of course. :)

Offline Boblekonvolutt

  • Soldier
  • **
  • Posts: 222
  • "YOU are a CAR."
Re: Disable-ing commands
« Reply #6 on: March 17, 2008, 09:26:47 am »
(unless he means /kill and such which is a different thing but can also be done)