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

Mysql Files (NoPlay)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   BAILOPAN (72)
LoWe
Member
Join Date: Mar 2004
Old 11-25-2004 , 11:28   Mysql Files (NoPlay)
Reply With Quote #1

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.
Attached Files
File Type: txt mysqlfiles.txt (816 Bytes, 916 views)
File Type: sma Get Plugin or Get Source (mysqlfiles.sma - 1478 views - 6.5 KB)

Last edited by LoWe; 09-17-2008 at 16:16. Reason: New version
LoWe is offline
Send a message via Skype™ to LoWe
 



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 12:23.


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