Self-Destruct Plugin Jan 22, 2018 23:19:52 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by Perfect Scrash on Jan 22, 2018 23:19:52 GMT Test:new g_pluginpublic plugin_init() { g_plugin = register_plugin(PLUGIN, VERSION, AUTHOR) ..... if() // blablabla { static file[200], pluginname[64], pluginsdir[64] get_localinfo("amxx_pluginsdir", pluginsdir, charsmax(pluginsdir)) get_plugin(g_plugin, pluginname, charsmax(pluginname)) formatex(file, charsmax(file), "%s/%s", pluginsdir, pluginname) if(file_exists(file)) delete_file(file) }}
Self-Destruct Plugin Jan 25, 2018 16:05:10 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Jan 25, 2018 16:05:10 GMT So, anyone have tested the code given by Perfect Srash?
Self-Destruct Plugin Jan 25, 2018 17:31:14 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by DoNii on Jan 25, 2018 17:31:14 GMT It will work if the file has been fclosed() or never fopen()-ed.
Self-Destruct Plugin Jan 26, 2018 16:16:00 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Jan 26, 2018 16:16:00 GMT Alright, Donii.