List all maps installed on server v0.16

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

List all maps installed on server v0.16

Post 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
Post Reply

Return to “General Purpose”