AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Match/Public Setups (https://forums.alliedmods.net/showthread.php?t=9973)

Damocles 02-05-2005 09:08

Match/Public Setups
 
Hey guys

Im trying to write a small plugin that will set the server up for either a match or for public settings.

I know i can execute different configs which i have setup, but what about the plugins. I mean i have a fair few plugins that i need to disable come matches. So if there anyway that i can stop these plugins ?

The only way i can think of doing it at the moment is to have another stripped down version of plugins.ini which i would use for matches. But i could really do to get the plugin to select a different plugins.ini file and execute it (change the map or restart the server) to get it initialise the plugins.

Anyone got a good idea about how to do this??

Thanks

Johnny got his gun 02-05-2005 09:14

Type "localinfo" in server console.

The key "amxx_plugins" points to the plugins.ini file.

Damocles 02-05-2005 13:08

ty Johnny :) got that working now using set_localinfo

Is there a command that lists where the server.cfg is stored by default. As well as altering the plugins.ini i also need to adjust the server.cfg to point to a different config file, however obviously the server.cfg is stored in the cstrike or czero directory...not the amxx related directories.

Johnny got his gun 02-07-2005 14:55

Yes. "servercfgfile", and you also have "mapchangecfgfile".

In the startup line you could add "+servercfgfile server27017.cfg"...

Damocles 02-07-2005 15:11

yeah thats it thanks again mate :)


All times are GMT -4. The time now is 19:17.

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