// ---------------------------------------------------------------------------
// StatsMe 2.8.3 Config Pack [16 June, 2004]
// ---------------------------------------------------------------------------
// This file is part of StatsMe (See README for more information).
// Copyright 2002 - 2004 UnitedAdmins (www.unitedadmins.com)
// Project originally created by OLO (http://olo.counter-strike.pl)
// ---------------------------------------------------------------------------
// Please read the manual and the forums carefully before altering this file!
// The Manual is located at http://docs.unitedadmins.com/statsme/
// The Forum can be found at http://forums.unitedadmins.com/
// ---------------------------------------------------------------------------
// Shows the next map after current basing on vote list

sm_mode3 set j

sm_menu "Nextmap\y\R{sm_mode3&j?ON:OFF}" "sm_mode3 {sm_mode3&j?remove:set} j"

sm_alias "/nextmap" "{sm_mode3&j?:#}{%.gfnxm=1}{%.nnxm2=0}sm_mode3 set k;sm_clexec2 #{p.uid} listmaps;sm_clexec2 #{p.uid} sm_nxm" b
sm_alias "sm_nxm" "{sm_mode3&k?:#}sm_mode3 remove k;sm_tell2 * \'The nextmap in list is: {C.cm_nextmap?$:{%.nnxm2?{%.nnxm}:{%.fnxm}}}\' 3" a

sm_reg "TextMsg k 3" "{%.gfnxm?{%.fnxm={V4}}{%.gfnxm=0}}{%.inxm?{V4={currentmap}?{%.tnxm=1}#}}{%.tnxm?{%.nnxm={V4}}{%.tnxm=0}{%.nnxm2=1}}" be "2=#Vote"
sm_reg "30 j 3" "{%.inxm=1}" ade