call a batch file from a cod4x server
12-31-2016, 06:16 PM
using the windows version of COD4X
I would like to know if there is a way to call a batch file from within the server
I know the $exec can call a script is there anyway to call a test.bat file?
what I am looking to do is remove or add the // in the following script via a batch file
called from within the game.
I can make the batch file to do it but do not know how to call it from the server when ever I want.
you want to enable or disable execution of specific scripts from within game ?
You can use dvars for that ..
It will do almost same that '//' does
To enable execution of script, use rcon or use $set command example: $set enable_script 1
01-01-2017, 01:28 PM
(12-31-2016, 06:16 PM)wkuzma Wrote: Hi all
no i dont think there is not. but the screenshot arrive fun does something similar and you could easily create a console command from it.
(01-01-2017, 07:40 AM)c-bin Wrote: you want to enable or disable execution of specific scripts from within game ?
ok I added that to my script and got it to work by using $set enable_script 1 to turn it on and $set Enable_script 0 to turn it off
I just do not know what the rcon command would be to turn the script on or off
could you please post what that rcon command would be.
01-02-2017, 07:53 AM
Same command ...
set enable_script 1 through any rcon tool
/rcon login <rconpassword>
/rcon set enable_script 1
Add it in any cfg file and use exec command
01-02-2017, 03:44 PM
01-09-2017, 03:41 PM
(01-02-2017, 03:44 PM)wkuzma Wrote:
(01-09-2017, 10:53 AM)c-bin Wrote: Here enable_script 0 will disable executing init() function in _setup.gsc file.. ie whatever inside init() function of that script will not be executed