PDA

View Full Version : Exec a batch file


Cooltad
05-05-2009, 15:35
Is there any way to code a plugin to execute a batch file when told to from a server command? I'm setting up my server to now use two different configs, and require different ctx files. So I have the batch file I need to rename the ext etc every time the mode switches, but have no way to automate it.

MikeJS
05-05-2009, 15:49
http://forums.eventscripts.com/viewtopic.php?t=7179

raydan
05-05-2009, 20:30
http://forums.alliedmods.net/showthread.php?t=73285

Cooltad
05-06-2009, 13:22
http://forums.alliedmods.net/showthread.php?t=73285
I've been having trouble figuring out how to register a command to be used with that extension you posted.

By the way, neither your extension or the mattie version work at all. Both give errors to srcds on load.