AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Load prefix specific plugins before map specific (https://forums.alliedmods.net/showthread.php?t=335906)

loc4lhost 01-12-2022 07:20

Load prefix specific plugins before map specific
 
Hi there,
is there a chance to change the order in which the plugin files are loaded?

My problem is as follows:

/cstrike/addons/amxmodx/configs/maps
- plugins-aim.ini
-> VIP.amxx disabled
- plugins-aim_storage.ini
-> VIP.amxx

Due to the fact that the prefix specific config file is loaded after the map specific file, the plugin stays disabled for the specified map.

Can anyone point out if and where this behaviour is changeable?

fysiks 01-12-2022 21:59

Re: Load prefix specific plugins before map specific
 
This was discussed not too long ago and it's not something that can be change in the current version of AMX Mod X. It looks like the only solution is to create a map-specific file for each map that has the prefix.

Natsheh 01-12-2022 23:21

Re: Load prefix specific plugins before map specific
 
Remove this ( plugins-aim.ini ) file and your problem is solved !

Celena Luna 01-13-2022 01:46

Re: Load prefix specific plugins before map specific
 
Quote:

Originally Posted by Natsheh (Post 2768336)
Remove this ( plugins-aim.ini ) file and your problem is solved !

I think he want the VIP plugin to run in all other type of map, except in all aim maps.
But in all aim maps, he want to run the VIP plugin in aim_storage specifically

Code:

if(MapIsAimMap && MapName != "aim_storage")
{
        StopVipPlugin
}


loc4lhost 01-13-2022 04:26

Re: Load prefix specific plugins before map specific
 
First of all: Thank your for your input!

Quote:

Originally Posted by fysiks (Post 2768333)
This was discussed not too long ago and it's not something that can be change in the current version of AMX Mod X. It looks like the only solution is to create a map-specific file for each map that has the prefix.

That sucks, then i will remove the 3 or 4 maps rather than creating 30 new files.


Quote:

Originally Posted by Natsheh (Post 2768336)
Remove this ( plugins-aim.ini ) file and your problem is solved !

Then I would have to create a plugin file for each map. Nothing that i want to do xD

Quote:

Originally Posted by Celena Luna (Post 2768340)
I think he want the VIP plugin to run in all other type of map, except in all aim maps.
But in all aim maps, he want to run the VIP plugin in aim_storage specifically

Code:

if(MapIsAimMap && MapName != "aim_storage")
{
        StopVipPlugin
}


Thats 100% right!

Celena Luna 01-13-2022 04:50

Re: Load prefix specific plugins before map specific
 
@loc4lhost tbh, you can just change aim_storage to other prefix so it won't be "aim_" and everything will be solved
For example: aims_storage

loc4lhost 01-13-2022 05:24

Re: Load prefix specific plugins before map specific
 
Quote:

Originally Posted by Celena Luna (Post 2768345)
@loc4lhost tbh, you can just change aim_storage to other prefix so it won't be "aim_" and everything will be solved
For example: aims_storage

F*ck me - why I haven't thought about that ....

Sometimes you are just to focused on your main goal xD

Thank you for the option!!!


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

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