mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed files not fclose()ing
Module no longer reloads on mapchange
This commit is contained in:
parent
e0af113cac
commit
ab2794d4bd
@ -39,6 +39,12 @@ void OnAmxxAttach()
|
||||
MF_AddNatives(geoip_natives);
|
||||
}
|
||||
|
||||
void OnAmxxDetach()
|
||||
{
|
||||
GeoIP_delete(gi);
|
||||
gi = NULL;
|
||||
}
|
||||
|
||||
AMX_NATIVE_INFO geoip_natives[] = {
|
||||
{"geoip_code2", amx_geoip_code2},
|
||||
{"geoip_code3", amx_geoip_code3},
|
||||
|
@ -10,7 +10,7 @@
|
||||
#define MODULE_URL "http://www.bailopan.com/"
|
||||
#define MODULE_LOGTAG "GEOIP"
|
||||
// If you want the module not to be reloaded on mapchange, remove / comment out the next line
|
||||
#define MODULE_RELOAD_ON_MAPCHANGE
|
||||
//#define MODULE_RELOAD_ON_MAPCHANGE
|
||||
|
||||
#ifdef __DATE__
|
||||
#define MODULE_DATE __DATE__
|
||||
@ -29,7 +29,7 @@
|
||||
// Do native functions init here (MF_AddNatives)
|
||||
#define FN_AMXX_ATTACH OnAmxxAttach
|
||||
// AMXX dettach
|
||||
//#define FN_AMXX_DETTACH OnAmxxDettach
|
||||
#define FN_AMXX_DETTACH OnAmxxDettach
|
||||
// All plugins loaded
|
||||
// Do forward functions init here (MF_RegisterForward)
|
||||
// #define FN_AMXX_PLUGINSLOADED OnPluginsLoaded
|
||||
|
Loading…
Reference in New Issue
Block a user