AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Serversettings taken from mysql DB (https://forums.alliedmods.net/showthread.php?t=91272)

lantz69 04-29-2009 03:14

Serversettings taken from mysql DB
 
I have searched for a plugin that can read serversettings like cvars amxx settings like imessage texts.
The purpose for the plugin is to make it simple for persons to change or add certain values to a server easily an a webpagegui.

The plugin should overide all settings in files on the server, but if mysql connnection fails the server already have settings from the files.

1. Servers must have an ID ie. sql_server_id 1 then 2 3 4 etc
the sql_server_id CVAR should be placed in amxx.cfg
2. be able to add new settings.
3. be able to add a new server to manage.
4. be able to add a new setting category

Im not sure how far you can go with this or even if it is a good idea.
Maybe even make so the file plugin.ini be added in mysql

DB could look something like this
CREATE TABLE plugin_serverinfo
id autoincrement
name
address /* ip:port */
description
...
...

CREATE TABLE plugin_settings
id autoincrement
server_id
name
value
description
category
edited_by_admin
datetime

CREATE TABLE plugin_categorys
id autoincrement
name
description

..


But first of all make it simple so you can just have som cvars in the plugin like some imessage.

I could do this myself, but I dont have the time right now and maybe something similar has alreday been done.

// LAntz69


All times are GMT -4. The time now is 15:56.

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