Map configs

Post Reply
User avatar
Hatz
This is my homepage
This is my homepage
Posts: 84
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Jan 18, 2007 5:07 pm
Contact:

Map configs

Post by Hatz »

I know about how to have certain configs for maps when they load, but is there a way to load an amxx files that's semicoloned normally, just for that map?

IE-

in plugins.ini

;surf-olympics.amxx

if we go to a surf map, it will auto turn to

surf-olympics.amxx

and ; itslef again on map change?
SNK-KLAN.NET - CS Denver - Realistic Mods - Fast DL - Believe It...

•Realistic Mods to help promote a more real cs!
•Forums are at http://www.snk-klan.net
•IP of the server is 72.5.102.41:27015
•19 slot server.
•HLTV
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Post by Edge100x »

I'd recommend that you do this through map configuration files. Just use either the command:

amx_pause pluginname

or

amx_unpause pluginname

at the top of the file for each map, for each plugin you want to dynamically adjust.
User avatar
Hatz
This is my homepage
This is my homepage
Posts: 84
Joined: Thu Jan 18, 2007 5:07 pm
Contact:

Post by Hatz »

thanks very much edge, had no idea it was that simple. Thought a plugin may have been required.
SNK-KLAN.NET - CS Denver - Realistic Mods - Fast DL - Believe It...

•Realistic Mods to help promote a more real cs!
•Forums are at http://www.snk-klan.net
•IP of the server is 72.5.102.41:27015
•19 slot server.
•HLTV
User avatar
Hatz
This is my homepage
This is my homepage
Posts: 84
Joined: Thu Jan 18, 2007 5:07 pm
Contact:

Post by Hatz »

doesnt seem to be working,

this is what i put in

amx_unpause "surf_olympics.amxx"

at the top of the cfg file, and i tried without quotes too
SNK-KLAN.NET - CS Denver - Realistic Mods - Fast DL - Believe It...

•Realistic Mods to help promote a more real cs!
•Forums are at http://www.snk-klan.net
•IP of the server is 72.5.102.41:27015
•19 slot server.
•HLTV
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Post by Edge100x »

That's my fault, I gave you the wrong commands!

It's "amxx pause pluginname" and "amxx unpause pluginname". Sorry about that!
User avatar
Hatz
This is my homepage
This is my homepage
Posts: 84
Joined: Thu Jan 18, 2007 5:07 pm
Contact:

Post by Hatz »

still no dice, tried all these in there:

"amxx unpause surf_olympics.amxx"
"amxx_unpause surf_olympics.amxx"
amxx_unpause "surf_olympics.amxx"
SNK-KLAN.NET - CS Denver - Realistic Mods - Fast DL - Believe It...

•Realistic Mods to help promote a more real cs!
•Forums are at http://www.snk-klan.net
•IP of the server is 72.5.102.41:27015
•19 slot server.
•HLTV
User avatar
Hatz
This is my homepage
This is my homepage
Posts: 84
Joined: Thu Jan 18, 2007 5:07 pm
Contact:

Post by Hatz »

also keep inmind, i have the plugin ; out still. Idk if the unpause will work then? It seems to not find it when i try the command in console
SNK-KLAN.NET - CS Denver - Realistic Mods - Fast DL - Believe It...

•Realistic Mods to help promote a more real cs!
•Forums are at http://www.snk-klan.net
•IP of the server is 72.5.102.41:27015
•19 slot server.
•HLTV
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Post by Edge100x »

It's definitely "amxx pause pluginname" and "amxx unpause pluginname" with no underscore.

When I did it directly on your server, I got this.

Code: Select all

> rcon amxx pause surf_olympics.amxx
Paused plugin "surf_olympics.amxx"
> rcon amxx plugins
Currently loaded plugins:
       name                    version  author            file             status
 [  1] Admin Base              1.76c    AMXX Dev Team     admin.amxx       running
 [  2] Admin Commands          1.76c    AMXX Dev Team     admincmd.amxx    running
...
 [ 43] surf_olympics           1.5.2a   OneEyed           surf_olympics.a  paused
User avatar
Hatz
This is my homepage
This is my homepage
Posts: 84
Joined: Thu Jan 18, 2007 5:07 pm
Contact:

Post by Hatz »

ok isee, but what im saying is that when i have surf_olympics.amxx ; out in plugins.ini, it cannot be paused/unpaused which is what i want. I want it to be ; out for non surf maps. It doesnt seem to be paused when its ;, cuz the console doesnt even recognize that it is there
SNK-KLAN.NET - CS Denver - Realistic Mods - Fast DL - Believe It...

•Realistic Mods to help promote a more real cs!
•Forums are at http://www.snk-klan.net
•IP of the server is 72.5.102.41:27015
•19 slot server.
•HLTV
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Post by Edge100x »

Assuming this method works, you'd need to have it uncommented in plugins.ini and then unpause it or pause it, as appropriate, in each map's configuration file. That means you would need to create a .cfg file for every map.
User avatar
Hatz
This is my homepage
This is my homepage
Posts: 84
Joined: Thu Jan 18, 2007 5:07 pm
Contact:

Post by Hatz »

ya, this is what i assumed....and im not gonna do that son lol, but thanks for your help.
SNK-KLAN.NET - CS Denver - Realistic Mods - Fast DL - Believe It...

•Realistic Mods to help promote a more real cs!
•Forums are at http://www.snk-klan.net
•IP of the server is 72.5.102.41:27015
•19 slot server.
•HLTV
BigBaller
New to forums
New to forums
Posts: 4
Joined: Sun Oct 07, 2007 7:03 am

Post by BigBaller »

I know this is a somewhat older thread, however for future reference.

http://forums.alliedmods.net/showthread.php?t=6516
How to on AMXX section of alliedmods that I created years ago.

To do what you want to do you would have to first enable the plugin. Then you would have to add the line lets say

amx_pausecfg pause surf_olympics.amxx

in your amxx.cfg

Then you would create a .cfg file for the surf map. Add this line in it.

amx_pausecfg unpause surf_olympics.amxx

amxx.cfg is loaded before custom map config, which would allow exactly what you are looking for.

AMXX 1.8 will allow plugin configs based on map prefix and map configs based on prefix. I think will update the tutorial based on these changes.
BigBaller
New to forums
New to forums
Posts: 4
Joined: Sun Oct 07, 2007 7:03 am

Post by BigBaller »

Sorry for double post, but I updated the wiki which has the lastest info about using this feature to the fullest.

http://wiki.amxmodx.org/Configuring_AMX ... nfig_Files

(p.s I love nFo servers, I cant understand why I didnt start with you guys either).
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Post by Edge100x »

Thanks for the extra info, BigBaller :)
Post Reply