Raised This Month: $12 Target: $400
 3% 

How to en/disable amxx module in specific map?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 05-28-2017 , 00:42   How to en/disable amxx module in specific map?
Reply With Quote #1

For some reason I need to disable a module for a map... and enable again for other maps
But how to do it?
__________________

Last edited by 11922911; 05-28-2017 at 00:43.
11922911 is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-02-2017 , 09:26   Re: How to en/disable amxx module in specific map?
Reply With Quote #2

i think you could do that only inside of the module ?
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 06-03-2017 , 14:37   Re: How to en/disable amxx module in specific map?
Reply With Quote #3

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.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 06-03-2017 at 14:39.
addons_zz is offline
Old 06-03-2017, 23:51
fysiks
This message has been deleted by fysiks. Reason: nvm, misunderstood the original question
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 06-04-2017 , 00:07   Re: How to en/disable amxx module in specific map?
Reply With Quote #4

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.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
Hectik17
AlliedModders Donor
Join Date: Oct 2005
Old 06-25-2017 , 13:55   Re: How to en/disable amxx module in specific map?
Reply With Quote #5

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
Hectik17 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:11.


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