Home
Forum
Rules
Search
Login
Register
December 22, 2024, 06:19:22 pm
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Follow Soldat on Social Media
:
Facebook
,
Twitter
,
Reddit
Official Soldat Forums
Server Talk
Scripting Discussions and Help
(Moderators:
chrisgbk
,
Bonecrusher
)
Disable-ing commands
« previous
next »
Pages: [
1
]
Author
Topic: Disable-ing commands (Read 931 times)
0 Members and 1 Guest are viewing this topic.
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?
Logged
Death is the solution to all problems. No man; no problem.
-Joseph Stalin
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.
Logged
Text goes here...
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"?
Logged
BRADEN
Camper
Posts: 319
Re: Disable-ing commands
«
Reply #3 on:
March 15, 2008, 01:15:09 am »
commands
Logged
Death is the solution to all problems. No man; no problem.
-Joseph Stalin
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.
Logged
-=Gradius wuz you=-
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. :)
Logged
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)
Logged
Pages: [
1
]
« previous
next »
Official Soldat Forums
Server Talk
Scripting Discussions and Help
(Moderators:
chrisgbk
,
Bonecrusher
)
Disable-ing commands