Player Map Rank
3 Attachment(s)
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 |
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! |
Do you mean the voting results that get displayed at the end of the vote?
________ buy cheap vaporizer |
Quote:
|
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 |
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.
|
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 |
cs_crackhouse on top. I see you have a fine select of players at your server. 8)
I always meant to do something like this but never got around. |
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 |
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 |
All times are GMT -4. The time now is 14:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.