Raised This Month: $ Target: $400
 0% 

Map Suggestions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Server Management       
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 08-14-2009 , 12:40   Map Suggestions
Reply With Quote #1

Map Suggestions
By Stewie!



Description:
So your server is pretty popular, but it seems that the same maps are being played over and over again.
The people that use your server will most probably have ideas of new maps to put on the server but they have no way of contacting you and letting you know.
This plugin allows people on your server to type
"amx_suggestmap <mapname>" in console and suggest a map
This command will update an SQL database containing todays date, their name, their steamID and their suggested map.
Inside map_suggestions.zip there is a .php file which can display this information on your website/webpage.
When a player suggests a map, they will get a confirmation message saying that their request has been accepted.

Commands:
amx_suggestmap <mapname> - Suggest a map to add to the server
a
mx_removemap <mapname> - Remove a map from the database [Admin only]

Coming soon:
If i learn more PHP codes additional web-related stuff will appear including votes on each map etc.
More features and cvars to make it easier to manage

Notes:
Remember to make an SQL database, user, and password before trying to use this plugin
You need to edit the .php aswell if you want to show this info on your website
You also need to add these lines to your amxx.cfg or server.cfg
Code:
ms_sql_host ""
ms_sql_user ""
ms_sql_pass ""
ms_sql_db ""
I have also included the php code if you want to display the information on your website

This is my first PHP/SQL related plugin so sorry about any random code sloppiness

Changelog (+ Added - Removed ~ Changed # Other)
v1.3
+ Added ML [thx crazyeffect]
# Learnt XHTML so made the php code compliant

v1.2
# Fixed the plugin. Should work now

v1.1

+ Added the date field
+ Added "amx_removemap <mapname>" for admins to remove maps from the database
~ Changed the names of the cvars so you can use different databases to the SQL admins

v1.0
# Public release
Attached Files
File Type: sma Get Plugin or Get Source (map_suggestions.sma - 637 views - 4.7 KB)
File Type: txt map_suggest.txt (1.5 KB, 136 views)
File Type: zip map_suggestions.zip (540 Bytes, 116 views)
__________________

Last edited by minimiller; 08-19-2009 at 18:51. Reason: v1.3
minimiller is offline
Send a message via MSN to minimiller
 



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 15:14.


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