Load/Unload Plugin for specific maps
Hallo,
i'd like to unload one of my plugins when some specific maps are started. does anyone have an idea how to do this? regards |
Re: Load/Unload Plugin for specific maps
Code:
new szMapName[32]; |
Re: Load/Unload Plugin for specific maps
Use per maps plugins-ini files, read amxx documentation, you can enable/disable plugins on specifics maps and on specific prefixed maps.
|
Re: Load/Unload Plugin for specific maps
Code:
#include <amxmodx> |
Re: Load/Unload Plugin for specific maps
You don't need to execute some code in a plugin to load/disable it in a map, RTFD.
|
Re: Load/Unload Plugin for specific maps
oh wonderfull thanks alot for all your comments and help.
have a nice weekend =) |
Re: Load/Unload Plugin for specific maps
Use this: addons/amxmodx/configs/maps (its more easy)
Example: Create de_dust2.cfg and in the cfg write amx_pausecfg pause plugin.amxx and save in the folder "maps" |
Re: Load/Unload Plugin for specific maps
Quote:
configs/maps/plugins-dust2.ini |
Re: Load/Unload Plugin for specific maps
Quote:
sv_gravity 330 mp_freezetime 0 and works fine for me, plugins-dust2.ini is for amxx 1.8.1+ ? because I use amxx 1.80 |
Re: Load/Unload Plugin for specific maps
No, since 1.8.0.
|
All times are GMT -4. The time now is 00:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.