This plugin was original developed by NoPlay, and re-written for multiply server support by FeliX who thanks GeekGod for help.
If any of the above listed doesn't want me to develop the plugin or feels like they are the ones that should be developing this; feel free to send me an PM.
Code:
This plugin fetches the name of files and the content of each file from a
mysqlserver and then it creates the files on the server, all paths in the
filename is relative to the mod-directory.
The files are loaded at mapstart, or by the command:
amx_reloadfiles (require ADMIN_RCON access)
Currently, the maxlength of the content of the file is around: 3000 symbols and letters.
This AMXX plugin requires a dbi-module to be running and configured to use your mysqlserver.
To configure your MySQL information, go to the addons/amxmodx/configs/sql.cfg file and edit it.
Files specified with the serverid 0 will be loaded at all servers, files with a special serverid
will only be loaded at the servers configured with that serverid.
To set your servers serverid, type this in your server config:
amx_serverid X // Replace X with your servers id; eg. amx_serverid 1
amx_mysqlfiles_table "name" // Sets the name of the "files-table"; eg. amx_mysqlfiles_table "amx_files"
Version History:
:: 3.00
lowe took over the development
Updated for amxmodx 1.0
added amx_reloadfiles command
Changed the error handling code.
:: 3.01
Changed accesslevel to ADMIN_RCON, thanks to BigBaller and lantz69.
:: 3.10
improved the amx_reloadfiles a lot.
multilanguage support!
Fixed a error with sql-config execution
:: 3.20
You may now choice what name you want the "files-table" in the database to have by setting the amx_mysqlfiles_table cvar to the name of the table.
The "files-table" will be created automatically (if it doesnt exists), only thing you gotta do is adding "files" too it!
:: 3.21
Implementing changes suggested by [PUPPETS] Gonzo to allow bigger files.
Note's by FeliX:
This plugin was original developed by NoPlay, and re-written for multiply server support by FeliX. Thanks to GeekGod for help.
Note's by lowe:
I wish to thank the amxmodx developing team, I sometimes look in the admin.sma and admincmd.sma when i doesn't know how to do ;). I would also like to give credit to [PUPPETS] Gonzo for his changes that's implemented in 3.21.
Thanks to the translators:
FeliX
This plugin is currently translated to swedish, danish and english! If you want to, feel free to translate it to your language and post your translation here.