Raised This Month: $12 Target: $400
 3% 

DeRoiD's Mapchooser v2.33


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Technical/Development       
DeRoiD
Senior Member
Join Date: Feb 2015
Old 04-12-2015 , 04:37   DeRoiD's Mapchooser v2.33
Reply With Quote #1



DeRoiD's Mapchooser
v2.33


Short description
This plugin last 3 minutes or round open the "Vote a map" menu. The one for which more people vote it will be the next map. If best vote < min. vote percent then re-vote! There is a manner of two kinds (dmc_mod) [1 minutes | 0 rounds]

You can
Say rtv "Rock the vote" [players 1:2]
Say nom "Nomination" (in menu) [chance 50%]
See timeleft | nextmap [timeleft, nextmap]
See played maps and played counts [/playedmaps]
See current map /currentmap
If you admin then can startvote (/startvote) [StartVoteFlag]

If in round mode you can add +rounds (amx_dmc_maxrounds) [RoundFlag]
See map infos (amx_dmc) [InfoFlag]

Cvars
dmc_mod - Plugin Mod. [1 = In minutes | 0 = In rounds] (Default: 1)
dmc_hudmod - Hud display mod in vote. [1 = Counting | 0 = Fix] (Default: 1)
dmc_changespeed - In intermission how much time to map choose. (Default: 5.0)
dmc_waitvotemenutime - How many time to open the vote menu. (Default: 10.0)
dmc_menudestroytime - After the vote how much time to destroy the menu. (Default: 5.0)
dmc_rtvminute - How many time to wait Rock the vote. (Default: 10)
dmc_votecounter - Voting time. (Default: 15)
dmc_votevariable - How many last minute or round to start vote? (Default: 3)
dmc_nomination - Nomination. [0 = Off | 1 = On] (Default: 1)
dmc_nomchance - How many chance the nomination [1-100%] (Default: 50)
dmc_playedmaps - Can be view Played Maps? . [0 = Off | 1 = On] (Default: 1)
dmc_rtv - Rock the vote. [0 = Off | 1 = On] (Default: 1)
dmc_rtvmin - Players the part of a proportion has to vote it? (Default: 2) [1:2]
dmc_maxmaps - Map choices. (Default: 5) [MIN:2 | MAX:9]
dmc_extend - If this map = next map how many minutes or round extend. (Default: 5)
dmc_votesound - Allow vote sounds? (G-Man) [0 = No | 1 = Yes] (Default: 1)
dmc_votepercent - How many min percent to avoid re-vote? [0 = Off] (Default: 50)
dmc_startrevotetime - How many time to wait re-voting menu? (Default: 5.0)
dmc_onlynextround - Change map the round end?[0 = Off | 1 = On] (Default: 1)
dmc_countsound - Allow countdown sounds? [0 = No | 1 = Yes] (Default: 1)
dmc_choosesound - Allow mapchoose sound? [0 = No | 1 = Yes] (Default: 1)
dmc_ad - Allow ads? [0 = No | 1 = Yes] (Default: 1)
dmc_startbutton - First vote button in vote menu. [ Min = 1 | Max = 8] (Default: 1)
dmc_langmode - Plugin lang mode. [0 = Server | 1 = Client] (Default: 0)
Set in addons/amxmodx/configs/dmc/dmc.cfg file.

Commands
  • Show next map: /nextmap, /nm
  • Show timeleft: /timeleft, /tl
  • Show played maps: /playedmaps, /pm
  • Start admin vote: /startvote
  • Show current map: /currentmap
  • Rock the vote: /rockthevote, /rtv
  • Nomination: /nomination, /nom
  • Show map infos: amx_dmc
  • Add rounds in game: amx_dmc_maxrounds

Installation
  1. Download plugin files
  2. mapdatas.dmc to dmc folder [addons/amxmodx/configs/dmc]
  3. Plugin name to plugins.ini
  4. Set rounds or minutes. mp_maxrounds | mp_timelimit (server.cfg)
  5. adminhelp.amxx to plugins folder
Important #1 (If you do not want to bug other map chooser plugin)
;nextmap.amxx ; displays next map in mapcycle
;mapchooser.amxx ; allows to vote for next map
;timeleft.amxx ; displays time left on map



Important #2
Found this your server.cfg file and delete it:

mp_timelimit x
mp_maxrounds x


Requirements
  • AMX 1.8.2 tested [32 online real players]
  • AMX 1.8.3 tested [32 online real players]
    • AMX 1.8.3-dev+4532
    • AMX 1.8.3-dev-git4751

Screenshots



















Lang
Hungarian DeRoiD
English DeRoiD
Spanish ACM1PT
Romanian JustVladK & K.O
Russian battlefield 3
Portuguese Perfect Scrash
Slovakian Belo95135
Serbian wEight
France ANTICHRISTUS
L -/-/- - -:-: Invalid multi-lingual line (file "cstrike/addons/amxmodx/data/lang/dmc.txt" line 1)
If you language don't use special characters then use ANSI coded lang file!

Change Log
  • v1.0
    • First relase [http://hlmod.hu]
    • Map choose [Max 5 choices] [removed]
    • Played maps
    • Next map
    • Timeleft
  • v1.20b
    • Rounds
    • Nomination
    • Admin vote
    • Rock the vote
  • v1.30b
    • Previous map can not be choose [removed]
  • v1.35b
    • Fix bugs
    • New chooser method
    • More map choices [MAX 9]
  • v1.49a
    • Re-vote if vote percent <= min percent
    • Removed hard coding paths
  • v1.53a
    • Fixed extend time [ ± 1 min ]
    • Fixed changelevel bug
  • v1.62a
    • Hud counter
    • Change map only next round
    • Fix bugs
  • v1.63a
    • HudMsg -> SyncHudMsg
  • v1.77a
    • Nobody votes bug fix
    • More languages
  • v1.86a
    • Countdown sounds
  • v2.00
    • Fix map change bug (mp_chattime)
    • Check maps (if valid or not)
    • Ad rounds in game (if dmc_mod 0) [mp_maxrounds 35]
    • Last map [New method]
  • v2.01
    • Current map
    • Instermission bug fix
  • v2.30
    • Multilang toggle Server / Client
    • Start button
    • Map infos
  • v2.33
    • Round fix
    • Add rounds [New method]
    • Multilang toggle Server / Client [removed]

Last update: 2015/06/25
Plugin v2.30 and lower more than 300 downloads.

Special thanks in source code!
Thanks guys
Attached Files
File Type: sma Get Plugin or Get Source (adminhelp.sma - 6553 views - 3.8 KB)
File Type: sma Get Plugin or Get Source (dmc233.sma - 8143 views - 42.2 KB)
File Type: zip dmc.zip (101.3 KB, 8187 views)

Last edited by DeRoiD; 06-26-2015 at 13:56.
DeRoiD is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 04-12-2015 , 04:44   Re: DMC (Map chooser)
Reply With Quote #2

Screen shots in English please.

Attach sma file separately.
__________________
Blizzard_87 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-12-2015 , 05:05   Re: DMC (Map chooser)
Reply With Quote #3

  • If it has color chat, you can't have it submitted as "Modification: All". You would have to make it Counter-Strike only.
  • You shouldn't assign a string to a string array variable, you shouldn't use equal, you should use copy().
  • The method you use to calculate the top vote can be done way simpler. Take a look at teh default mapchooser plugin.
  • read_file() shouldn't be used in a loop. You should use fopen, fgets, fclose instead.
  • Writing to a file while you have it open for reading is never a good idea.
  • The variable named "MapName" is vague so it's hard to tell what it actually contains.
  • To clear the values in an array (make them all default) you can simply use arrayset() instead of looping.
  • When setting a cvar value, use set_cvar_*() instead of using a server command.
__________________

Last edited by fysiks; 04-12-2015 at 05:28.
fysiks is offline
DeRoiD
Senior Member
Join Date: Feb 2015
Old 04-12-2015 , 05:47   Re: DMC (Map chooser)
Reply With Quote #4

Thanks!
I will fix!
DeRoiD is offline
ACM1PT
Member
Join Date: Feb 2014
Location: Argentina
Old 04-12-2015 , 09:24   Re: DMC (Map chooser)
Reply With Quote #5

Spanish
Attached Files
File Type: zip data.zip (1.9 KB, 878 views)
ACM1PT is offline
DeRoiD
Senior Member
Join Date: Feb 2015
Old 04-12-2015 , 09:26   Re: DMC (Map chooser)
Reply With Quote #6

I edited.
Thanks ACM1PT

Last edited by DeRoiD; 04-12-2015 at 09:27.
DeRoiD is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-12-2015 , 16:41   Re: DMC (Map chooser)
Reply With Quote #7

Wow looks cool, might be useful and fancy.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 04-13-2015 , 04:58   Re: DMC (Map chooser)
Reply With Quote #8

When I go on server this menu show(auto) and not moving,standing there all the time
Attached Images
File Type: jpg fy_snow0002.jpg (58.0 KB, 4006 views)

Last edited by Krtola; 04-13-2015 at 05:09.
Krtola is offline
Send a message via Skype™ to Krtola
DeRoiD
Senior Member
Join Date: Feb 2015
Old 04-13-2015 , 06:16   Re: DMC (Map chooser)
Reply With Quote #9

I know the error. I will fix it if i at home.
__________________
DeRoiD is offline
DeRoiD
Senior Member
Join Date: Feb 2015
Old 04-13-2015 , 09:17   Re: DMC (Map chooser)
Reply With Quote #10

I fixed!
__________________
DeRoiD 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:57.


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