AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   How to en/disable amxx module in specific map? (https://forums.alliedmods.net/showthread.php?t=297934)

11922911 05-28-2017 00:42

How to en/disable amxx module in specific map?
 
For some reason I need to disable a module for a map... and enable again for other maps
But how to do it?

Craxor 06-02-2017 09:26

Re: How to en/disable amxx module in specific map?
 
i think you could do that only inside of the module ?

addons_zz 06-03-2017 14:37

Re: How to en/disable amxx module in specific map?
 
I am not sure if it works, but you can create an amxx plugin which run the command `meta unload MODULE` when that map is started.

Later I do not if is necessary to load the module again, but if the module does not come back, make the plugin to run `meta load MODULE` after that maps ends.

addons_zz 06-04-2017 00:07

Re: How to en/disable amxx module in specific map?
 
Quote:

If AMX Mod X is unloaded, how is a AMX Mod X plugin doing to load AMX Mod X?
You are correct. If the module he wants to unload is the amxx then it will not reload by an amxx plugin.

Unless metamod reload it:
  1. If metamod only loads modules on server starts, then instead of writing an amxx plugin he should write a simple module to do the process.
  2. If metamod load the module each map change, then writing an amxx plugin is fine, as long as his server runs the amxx module at all.

Hectik17 06-25-2017 13:55

Re: How to en/disable amxx module in specific map?
 
usage: meta <command> [<arguments>]
valid commands are:
version - display Metamod version info
list - list plugins currently loaded
cmds - list console cmds registered by plugins
cvars - list cvars registered by plugins
refresh - load/unload any new/deleted/updated plugins
config - show config info loaded from config.ini
load <name> - find and load a plugin with the given name
unload <plugin> - unload a loaded plugin
reload <plugin> - unload a plugin and load it again
info <plugin> - show all information about a plugin
pause <plugin> - pause a loaded, running plugin
unpause <plugin> - unpause a previously paused plugin
retry <plugin> - retry a plugin that previously failed its action
clear <plugin> - clear a failed plugin from the list
force_unload <plugin> - forcibly unload a loaded plugin
require <plugin> - exit server if plugin not loaded/running

Moreinfo: http://metamod.org/metamod.html


All times are GMT -4. The time now is 12:00.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.