This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Map Suggestions


Post New Thread Reply   
 
Thread Tools Display Modes
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 - 633 views - 4.7 KB)
File Type: txt map_suggest.txt (1.5 KB, 134 views)
File Type: zip map_suggestions.zip (540 Bytes, 114 views)
__________________

Last edited by minimiller; 08-19-2009 at 18:51. Reason: v1.3
minimiller is offline
Send a message via MSN to minimiller
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-14-2009 , 12:42   Re: Map Suggestions
Reply With Quote #2

Mhhh, hi.
__________________
xPaw is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 08-14-2009 , 13:01   Re: Map Suggestions
Reply With Quote #3

:O
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 08-14-2009 , 13:04   Re: Map Suggestions
Reply With Quote #4

:O
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-14-2009 , 13:06   Re: Map Suggestions
Reply With Quote #5

You should use your own cvars and not the default which may be already used for admin_sql or amxbans for example.
__________________
Arkshine is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 08-14-2009 , 13:10   Re: Map Suggestions
Reply With Quote #6

Put an Update. Because someone can Flood the SQL Server.

Also check if is a valid map.

amx_suggestmap "I Love Spam "

You understand me?
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 08-14-2009 , 13:30   Re: Map Suggestions
Reply With Quote #7

Gonna try & gonna give feedback
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 08-14-2009 , 13:33   Re: Map Suggestions
Reply With Quote #8

Quote:
Originally Posted by Arkshine View Post
You should use your own cvars and not the default which may be already used for admin_sql or amxbans for example.
i was thinking about that, but i aparently never changed it
Quote:
Originally Posted by AntiBots View Post
Put an Update. Because someone can Flood the SQL Server.

Also check if is a valid map.

amx_suggestmap "I Love Spam "

You understand me?
How would i stop flooding?
ive put the steamID field in anyway so u can ban any1 who abuses it
i was thinking about adding another table with steamIDs in so they cannot use it
i was gonna put a map checker in aswell, but there is so specific map name layout
i suppose i could check if they include de_ cs_ aim_ etc. but what about random maps that hardly any1 knows?
__________________
minimiller is offline
Send a message via MSN to minimiller
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 08-14-2009 , 13:55   Re: Map Suggestions
Reply With Quote #9

It works!

I suggested map de_lol

& look whats standing here
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 08-14-2009 , 14:01   Re: Map Suggestions
Reply With Quote #10

Quote:
Originally Posted by crazyeffect View Post
It works!

I suggested map de_lol

& look whats standing here
thanks dude <3

not bad seeing as i havent submitted a plugin in about a year :p
__________________
minimiller is offline
Send a message via MSN to minimiller
Reply



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 00:30.


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