View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-12-2018 , 22:56   Re: [CSS] Menu with map elimination
Reply With Quote #9

Quote:
Originally Posted by kshishu View Post
I will not use mapchooser - I want to remove standard plugins. I am still beginner at coding but I think that is some trick to read last map on menu. Not last played map
SetNextMap and ReadMapList aren't part of mapchooser, they're part of SourceMod itself.

Having said that, I've spent a lot of time working on Mapchooser and its variants, so I have a pretty good idea how to do map votes.

As for reading the last map on the list, just get the number of items in the vote, then get the menu item with one less than that number.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 01-12-2018 at 22:57.
Powerlord is offline