I am making my CTF plugin with .cfg files for the spawn locations of the flag entities. Lets say you install them to: "your_configs_directory\ctf\" and the filename is "map_name.ctf.cfg" so for example "de_aztec.ctf.cfg"
I would get this location/file like this:
Code:
new map_name[32], file[64], config_dir[32]
get_configsdir(config_dir,31);
get_mapname(map_name,31);
formatex(file, 63, "%s/ctf/%s.ctf.cfg", config_dir, map_name);
then I would check if that file exsists, and if so load the origin from it:
Code:
if(file_exists(file)) {
//load info, but I dont know how to do this.
}
how would I load the information?
here is an example from my de_aztec.ctf.cfg I made:
Code:
-3311.968750 128.465026 -313.994537
2531.370605 41.470859 -251.968750
counter-terrorist is first, then terrorist.
also attatched. Thanks in advance.