is it possible to create a script, that through command switch between to script. I mean, you have to script in a subfolder to Scripts, then you have this script that I'm requesting in the Scripts folder. Which at start automatically run one of them. But when a OP use a command, like +switch , it unloads the script, then loads the other one + sends to all Ops that it has switched the script + the name of the script that it has switch ed to. If the command is used again, the it will switch back to the first one..
Well i know it's possible with the new unreleased ptokax, cause there is a function to restart scripts.
^^ Cause i think that is needed for your request
QuoteOriginally posted by Optimus
Well i know it's possible with the new unreleased ptokax, cause there is a function to restart scripts.
^^ Cause i think that is needed for your request
ok :( guess I have to wait until the new ptokax :(
This should be possible even today I think.
If you just have two scripts you're going to switch beetween then you can specifi the two script in an ini-fil that tells the script that is gooing to be started at startup. When you type +switch it renames the script that is running and should be "switched" out to script1.lua.txt or something else and renames the one that should be run to script1.lua and then uses !restartscripts ... Might work :D