View Single Post
Author Message
ecca
Sexy Santa
Join Date: Jan 2011
Old 02-25-2012 , 11:22   [ANY] MySQL Mapcycle
Reply With Quote #1

MySQL Mapcycle

A simple plugin that allows you to setup your mapcycle through MySQL.

Installation:
  • Copy the mysql_mapcycle.smx to your plugins directory
  • *OPTIONAL* Webinterface: included in the zip file.
Cvars:
  • None
Command:
sm_reloadmapcycle - root flag

Setup:

Quote:
Databases.cfg:
"mapcycle"
{
"driver" "mysql"
"host" "YourHost"
"database" "YourDatabase"
"user" "YourUser"
"pass" "YourPassword"
//"timeout" "0"
//"port" "0"
}

MySQL Table: (Note: Change mapcycle to the new one if you changed the table prefix in the plugin)

CREATE TABLE IF NOT EXISTS `mapcycle` (
`mapname` varchar(64) NOT NULL DEFAULT ''
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Webinterface:
Just download it, edit the mysql connection and upload it into your webhost, be sure to hide it or just delete it after use
ToDo:
Quote:
- WebInterface comming today or tomorrow
Plugin Changelog:
Quote:
MySQL Mapcycle 1.2
- Optimized plugin to only recreate mapcycle on pluginstart / admin command
- Added admin commando sm_reloadmapcycle to redownload the mapcycle
- Fixed issues listed by approver
- Webinterface released again

MySQL Mapcycle 1.1
- Fixed ConVar letting you use multiple servers on one database using table prefix

MySQL Mapcycle 1.0
- Initial release
WebbInterface Changelog:
Quote:
Webinterface 1.0
- Initial release
Download here: Github

Last edited by ecca; 03-24-2015 at 04:40. Reason: Updated link
ecca is offline