haha sorry, something like this:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "M249-M4A1"
#define CONFIGPATH "addons/amxmodx/configs/"
#define CONFIGFILE "myconfig.cfg"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_loadmahconfig", "LOADITBABY", ADMIN_KICK, "- execute a config file")
register_cvar("my_cvar", "1")
register_cvar("my_other_cvar", "abcdefghijk")
}
public LOADITBABY(id) {
server_cmd("exec %s/%s", CONFIGPATH, CONFIGFILE)
// or, if you don't want to use defines:
server_cmd("exec addons/amxmodx/configs/myconfig.cfg")
// tell the client the config was executed
client_print(id, print_console, "[AMXX] A configuration file was executed")
return PLUGIN_HANDLED
}
/*
and inside of myconfig.cfg:
// this is myconfig.cfg
// sv_alltalk "0"
// my_cvar "0"
// my_other_cvar "abcdefg"
*/
__________________