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

Polymorph: Mod Manager


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 05-17-2019 , 22:40   Re: Polymorph: Mod Manager
Reply With Quote #11

Using the same /addons/ folder is more convenient since I just share everything plugin, config, lang, etc related, I use a plugins-common.ini and various plugins_[x].ini files depending on the server (selected by a different AMXX core file).

But this is outside the topic of conversation.

Since you are already editing plugins-polymorph.ini at the end of the map it would be efficient to empty the file on map start to at least reduce the chance of other servers from loading it.

Adding this block of code at the end of plugin_cfg() seems to do the trick.
Code:
//clean the file to prevent other servers from loading it new szMainFilePath[STRLEN_PATH] new pMainFile get_configsdir(szMainFilePath, charsmax(szMainFilePath)) format(szMainFilePath, charsmax(szMainFilePath), "%s/plugins-polymorph.ini", szMainFilePath) pMainFile = fopen(szMainFilePath, "wt"); if(pMainFile) {     fclose(pMainFile) }
__________________

Last edited by gabuch2; 05-17-2019 at 22:53.
gabuch2 is offline
 



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 01:50.


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