Hi i'm using this script which I found in scripters sections, but it isn't working, why?
Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Delete"
#define VERSION "1.0"
#define AUTHOR "xxx"
new g_baseDir[128]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
get_basedir(g_baseDir,127);
}
public plugin_end()
{
format(g_baseDir,127,"%s/data/vault/infomation.vault",g_baseDir);
delete_file(g_baseDir);
}
I want delete this file after mapchange or erase it. It is possible? This plugin is not doing it
Thanks for help.
__________________