AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   DeRoiD's Mapchooser v2.33 (https://forums.alliedmods.net/showthread.php?t=261412)

DeRoiD 04-12-2015 04:37

DeRoiD's Mapchooser v2.33
 
4 Attachment(s)

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

http://kepfeltoltes.hu/150506/301867...toltes.hu_.jpg

http://kepfeltoltes.hu/150506/334118...toltes.hu_.jpg

http://kepfeltoltes.hu/150506/393138...toltes.hu_.jpg

http://kepfeltoltes.hu/150506/473551...toltes.hu_.jpg

http://kepfeltoltes.hu/150509/aaa_ww...toltes.hu_.jpg

http://kepfeltoltes.hu/150509/bbb_ww...toltes.hu_.jpg


http://kepfeltoltes.hu/150625/0012_w...toltes.hu_.jpg

http://kepfeltoltes.hu/150625/59_www...toltes.hu_.jpg

http://kepfeltoltes.hu/150625/999090...toltes.hu_.jpg

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 :)

Blizzard_87 04-12-2015 04:44

Re: DMC (Map chooser)
 
Screen shots in English please.

Attach sma file separately.

fysiks 04-12-2015 05:05

Re: DMC (Map chooser)
 
  • 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.

DeRoiD 04-12-2015 05:47

Re: DMC (Map chooser)
 
Thanks!
I will fix!

ACM1PT 04-12-2015 09:24

Re: DMC (Map chooser)
 
1 Attachment(s)
Spanish :wink:

DeRoiD 04-12-2015 09:26

Re: DMC (Map chooser)
 
I edited.
Thanks ACM1PT :)

yokomo 04-12-2015 16:41

Re: DMC (Map chooser)
 
Wow looks cool, might be useful and fancy.

Krtola 04-13-2015 04:58

Re: DMC (Map chooser)
 
1 Attachment(s)
When I go on server this menu show(auto) and not moving,standing there all the time

DeRoiD 04-13-2015 06:16

Re: DMC (Map chooser)
 
I know the error. I will fix it if i at home.

DeRoiD 04-13-2015 09:17

Re: DMC (Map chooser)
 
I fixed!


All times are GMT -4. The time now is 22:31.

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