new hk_cfg[] = "File.cfg"
new hk_File[128]
new fi_Dir[64]
get_configsdir(fi_Dir,charsmax(fi_Dir))
formatex(hk_File,charsmax(hk_File),"%s/%s",fi_Dir,hk_cfg)
if(!file_exists(hk_File))
{
write_file(hk_File,"")
//Here are the cvars that need to be write
}
server_cmd("exec %s",hk_File)
I made this cfg for that plugins cvars not be edited from amxx.cfg but from file.cfg
The file appear in configs folder and contain all the cvars but I can't get it executed.What I'm doing wrong ?