diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index f5cd0175..c86c8898 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -2765,7 +2765,7 @@ AMX_NATIVE_INFO amxmod_Natives[] = { { "register_logevent",register_logevent}, { "register_menucmd", register_menucmd }, { "register_menuid", register_menuid }, - { "register_module", register_module }, + { "require_module", register_module }, { "register_plugin", register_plugin }, { "register_srvcmd", register_srvcmd }, { "remove_cvar_flags", remove_cvar_flags }, diff --git a/plugins/admin.sma b/plugins/admin.sma index 7332dd10..35babadc 100755 --- a/plugins/admin.sma +++ b/plugins/admin.sma @@ -107,7 +107,7 @@ public plugin_init() { #if defined USING_SQL public plugin_modules() { - register_module("DBI") + require_module("DBI") } #endif diff --git a/plugins/cstrike/stats_logging.sma b/plugins/cstrike/stats_logging.sma index af150eb4..f5b430fa 100755 --- a/plugins/cstrike/stats_logging.sma +++ b/plugins/cstrike/stats_logging.sma @@ -84,4 +84,9 @@ public getPing(id) { get_user_ping( id , iPing, iLoss) g_pingSum[ id ] += iPing ++g_pingCount[ id ] +} + +public plugin_modules() +{ + require_module("csstats") } \ No newline at end of file diff --git a/plugins/cstrike/statsx.sma b/plugins/cstrike/statsx.sma index 9e904c54..aad7c284 100755 --- a/plugins/cstrike/statsx.sma +++ b/plugins/cstrike/statsx.sma @@ -1641,4 +1641,9 @@ public client_connect( id ) { g_fzShowUserStatsTime[id] = 0.0 return PLUGIN_CONTINUE +} + +public plugin_modules() +{ + require_module("csstats") } \ No newline at end of file diff --git a/plugins/include/amxmodx.inc b/plugins/include/amxmodx.inc index d12afe13..9699ba1f 100755 --- a/plugins/include/amxmodx.inc +++ b/plugins/include/amxmodx.inc @@ -651,4 +651,4 @@ native plugin_flags(); forward plugin_modules(); -native register_module(const module[]); \ No newline at end of file +native require_module(const module[]); \ No newline at end of file diff --git a/plugins/telemenu.sma b/plugins/telemenu.sma index 77141a17..e7862d96 100755 --- a/plugins/telemenu.sma +++ b/plugins/telemenu.sma @@ -55,7 +55,7 @@ public plugin_init() { public plugin_modules() { - register_module("fun") + require_module("fun") } public actionTelMenu(id,key) {