Es mexec

From EventScripts Community Encyclopedia


Overview

Syntax: es_mexec <path/script>

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: {{{x}}}

Description

Executes silently a .cfg script from your cstrike folder (very useful to execute internal config files)

Parameters

  • path/script - the location and the name of the script


Examples

code:

block load
{
	es_setinfo Script_servervar1 0
	es_setinfo Script_servervar2 0
	
	// put your settings into file "../cfg/script_config.cfg"
	es_mexec ../cfg/script_config.cfg
}

script_config.cfg:

//description
 
Script_servervar1 "1"
 
//description
Script_servervar2 "12"


Notes

  • With this command you can exec files outside the cfg folder
  • You will not get a echo message while executing a script with es_mexec
  • You can only execute .cfg files


See also


External links

es_xmexec


{{{category}}}

blog comments powered by Disqus