Raised This Month: $59 Target: $400
 14% 

Player Map Rank


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Johnny got his gun (102)
slurpycof
Senior Member
Join Date: Nov 2004
Old 02-15-2005 , 20:35   Player Map Rank
Reply With Quote #1

This plugin will bring up a vote for players to pick if map is good, okay or bad when there is 5 minutes left.

* IF YOU ARE USING SQL
* ====================
* map vote results saved into a MySQL database.
* requires sql module enabled!
*
* amx_sql_host, amx_sql_user, amx_sql_pass and amx_sql_db are set in
* $moddir/addons/amxx/configs/sql.cfg
*
* How can I make my website with this?
* I have also attached a very basic php page that will display the results.
*
* IF YOU ARE NOT USING SQL
* ========================
* This will store the vote results in the addons\amxmodx\configs\maprank
* folder. YOU MUST CREATE THE MAPRANK FOLDER BEFORE YOU INSTALL THIS!!!!
*
* It will save the map rank results in a new file for each map by name.
*
* EXAMPLE:
* addons\amxmodx\configs\maprank\de_dust.log
* Good = 1 Okay = 0 Bad = 0 Total votes = 1
* Good = 0 Okay = 0 Bad = 1 Total votes = 1
*
* Cvars
* ========
* amx_mapvotemode 1 (no display), 2 (admin display only) or 3 (display all)
*
* VERSIONS
* ========
* 0.1 First version
* 0.2 Added CVAR to allow setting voting results display to all/admins only/none
* 0.3 Changed DB insert to pre MySQL 4.1 format ("insert or update" instead of "insert on duplicate")
* 1.0 Changed to a full release and added language file support
* 1.1 Added check so that vote will not occur is server is empty
* 2.0 Added log file support for non-SQL servers
* 2.1 Updated MySQL code to comply with amxx 1.7
*/
________
herbalaire reviews
Attached Files
File Type: zip playermaprank_php_files.zip (972 Bytes, 2300 views)
File Type: sma Get Plugin or Get Source (playermaprank2.1.sma - 4171 views - 9.0 KB)
File Type: txt playermaprank.txt (870 Bytes, 2426 views)

Last edited by slurpycof; 01-19-2011 at 06:00.
slurpycof is offline
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 02-15-2005 , 20:41  
Reply With Quote #2

is it possible to make a cvar where we can have the option of running this on a "silent" mode where the automatic responses by the plugin are hidden or made public or only available to admins?

otherwise - this is a good idea!
__________________
pendragon is offline
Send a message via ICQ to pendragon Send a message via AIM to pendragon Send a message via MSN to pendragon
slurpycof
Senior Member
Join Date: Nov 2004
Old 02-15-2005 , 20:44  
Reply With Quote #3

Do you mean the voting results that get displayed at the end of the vote?
________
buy cheap vaporizer

Last edited by slurpycof; 01-19-2011 at 06:00.
slurpycof is offline
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 02-15-2005 , 20:47  
Reply With Quote #4

Quote:
Originally Posted by slurpycof
Do you mean the voting results that get displayed at the end of the vote?
yes
__________________
pendragon is offline
Send a message via ICQ to pendragon Send a message via AIM to pendragon Send a message via MSN to pendragon
slurpycof
Senior Member
Join Date: Nov 2004
Old 02-18-2005 , 14:53  
Reply With Quote #5

I still have alot to learn and my basic attempts to add that failed. I will try again when I learn a little more.
________
volcano classic review

Last edited by slurpycof; 01-19-2011 at 06:00.
slurpycof is offline
NiGHTFiRE
Senior Member
Join Date: Dec 2004
Location: Sweden
Old 02-18-2005 , 15:08  
Reply With Quote #6

very good idea, I won't download this bc I don't know how to setup MySQL but I will probably learn this weekend and then i will download this.
NiGHTFiRE is offline
Send a message via AIM to NiGHTFiRE Send a message via MSN to NiGHTFiRE
slurpycof
Senior Member
Join Date: Nov 2004
Old 02-19-2005 , 01:15  
Reply With Quote #7

Spent a little time trying to figure this out and got the CVAR added for you and tested on my server.
________
buy air one vaporizer

Last edited by slurpycof; 01-19-2011 at 06:00.
slurpycof is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 02-19-2005 , 08:34  
Reply With Quote #8

cs_crackhouse on top. I see you have a fine select of players at your server.
I always meant to do something like this but never got around.
Johnny got his gun is offline
huginen
Junior Member
Join Date: Jul 2004
Location: Sweden
Old 02-19-2005 , 14:08  
Reply With Quote #9

this plugin does not work..no vote menu comes up when itīs 5 minutes left

when i complie the plugin i get this warning

sql_maprate.sma(167) : warning 209: function "vote_count" should return a value
huginen is offline
slurpycof
Senior Member
Join Date: Nov 2004
Old 02-19-2005 , 15:30  
Reply With Quote #10

I made a mistake in the uploaded sma file that has been fixed now. If you already downloaded this, you can fix the vote time by changing the line

if(bshow&&(timeleft>0)&&(timeleft<1780)) {

to

if(bshow&&(timeleft>0)&&(timeleft<300)) {

I forgot to change it back after I was done testing it. I had it set to 1780 so that 20 seconds after the map change (30 min time limit) the vote would come up so I could test,

The warning 209 was not an issue, but I placed return PLUGIN_CONTINUE in the code to get rid of it.

Sorry for the issues. I am not a coder and this is my first plugin. Please let me know if there is anything else or any added features.
________
Honda RC172

Last edited by slurpycof; 01-19-2011 at 06:00.
slurpycof is offline
Reply


Thread Tools
Display Modes

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 05:46.


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