Page 1 of 1

List all maps installed on server v0.16

Posted: Mon Nov 22, 2021 12:45 pm
by greenie
Displays all installed maps on the server starting with map #1, intended to replace 'listmaps' but can be used as an extra plugin if the amx_listmaps command is commented out in plugin_init().

Usage:
amx_listmaps [# map to start] [# maps to list at once]
listmaps [# map to start] [# maps to list at once]

Both parameters are optional. If the two are omitted, it will display maps 1-10, if the second is omitted it will display 10 maps.

Suggestions are welcome.
Some of you may remember OLO's amx_listmaps plugin. I thought it was the best thing since god knows what, and I've been using it ever since he released it.

Sadly, I was dismayed that nobody had ported it. I tried to simply "port" it myself, but I realized that there was a bug with read_dir() .. it displayed some files more than once! So while I decided to go and whip up a workaround for that, I pretty much rehauled OLO's code as well as adding an option to display more than 10 maps at once.
plugin
source