Enhanced Map Searching v1.6 ( Ludwig van )
Posted: Mon Nov 22, 2021 12:48 pm
********************************************* *******************************
*
* Version 1.6 - 07/24/2005
*
* Original by Eric Lidman aka "Ludwig van" <ejlmozart@hotmail.com>
* Homepage: http://lidmanmusic.com/cs/plugins.html
*
* Upgraded to STEAM and ported to AMXx by: jtp10181 <jtp@jtpage.net>
* Homepage: http://www.jtpage.net
*
********************************************* *******************************
Now Has MOTD Popup Support
Now Has MapCycle Output Support
This plugin allows users to search through all the maps on your server. The plugin can either search through the servers maps folder and lists them from there, or it can read from a file. This can be set as a compile time define below. To cut down on the lag caused by file actions, the maps are loaded into memory at the start of each map and searched from there while games are in progress. Thus if you add a map to your server, it wont show up in the search until you load the next map. If you are loading the map list from a file a map will not show up until it is added to the file being read. This plugin also has an automatic chat response that will tell people
Commands:
mapsearch <target> - returns up to 20 maps in the HUD containing the search target
listmaps - returns all maps in the console paginated amx_help style
listmaps <target> - returns all maps containing search target in the console amx_help style.
listmapsm - returns all maps in a MOTD popup paginated amx_help style
listmapsm <target> - returns all maps containing search target in a MOTD popup window.
listcycle - returns mapcycle in the console paginated amx_help style
listcycle <target> - returns mapcycle maps containing search target in the console amx_help style.
listcyclem - returns mapcycle in a MOTD popup paginated amx_help style
listcyclem <target> - returns mapcycle maps containing search target in a MOTD popup window.
Changelog:
v1.6 - JTP10181 - 07/24/05
Fixed bug causing it to not compile on loadfile mode
Merged in multi-language code from faluco (Thanks!)
v1.5 - JTP10181 - 10/17/04
Fixed readdir code so it works on linux (thanks PM)
Small tweaks to code to fix some dumb things I did
v1.4 - JTP10181 - 07/22/04
Added new compile option to enable listcycle to list the current mapcycle
Fixed a few random things that I was doing incorrectly
Condensed the "admin" command function into one function
v1.3 - JTP10181 - 07/02/04
Added some new code to catch "say listmaps" and block it from being used by other plugins (Deags Map Manager)
Added MOTD popup support in the form of "listmapsm"
Added some basic dupe checking where it loads the maps in from a dir
Added function to sort the array with the maps
Added advanced dupe checking into the sorting function
v1.2.2 - JTP10181
Tweaked the help info for the commands a little
Fixed some hardcoded paths I left in on accident
v1.2.1 - JTP10181
Changed all printed messages to use the [AMXX] tag instead of [AMX]
v1.2 - JTP10181
Added ability to read from a file as a compile option
Fixes for steam (.ztmp files ignored)
Added listmaps output to console amx_help style (thanks tcquest78for amx_help code)
Added a "currentmap" response to the say handler, people are always asking this.
Added lots of other common triggers to a handle say catch so anyone trying to find maps should not have a problem
Below v1.2 was maintained by Eric Lidman
********************************************* ******************************/
In case anyone is wondering I was given rights to maintain all Luds plugins by Eric Lidman himself.
To use the listcycle mode you moust download the SMA, change the define setting and compile the plugin yourself.
Check out my CVS for all the plugins I have worked on. Many are not released anywhere except the CVS because they are not my plugins orginally.
http://web.thekingpin.net/cgi-bin/cvsweb.cgi/jtp10181/
plugin
source
*
* Version 1.6 - 07/24/2005
*
* Original by Eric Lidman aka "Ludwig van" <ejlmozart@hotmail.com>
* Homepage: http://lidmanmusic.com/cs/plugins.html
*
* Upgraded to STEAM and ported to AMXx by: jtp10181 <jtp@jtpage.net>
* Homepage: http://www.jtpage.net
*
********************************************* *******************************
Now Has MOTD Popup Support
Now Has MapCycle Output Support
This plugin allows users to search through all the maps on your server. The plugin can either search through the servers maps folder and lists them from there, or it can read from a file. This can be set as a compile time define below. To cut down on the lag caused by file actions, the maps are loaded into memory at the start of each map and searched from there while games are in progress. Thus if you add a map to your server, it wont show up in the search until you load the next map. If you are loading the map list from a file a map will not show up until it is added to the file being read. This plugin also has an automatic chat response that will tell people
Commands:
mapsearch <target> - returns up to 20 maps in the HUD containing the search target
listmaps - returns all maps in the console paginated amx_help style
listmaps <target> - returns all maps containing search target in the console amx_help style.
listmapsm - returns all maps in a MOTD popup paginated amx_help style
listmapsm <target> - returns all maps containing search target in a MOTD popup window.
listcycle - returns mapcycle in the console paginated amx_help style
listcycle <target> - returns mapcycle maps containing search target in the console amx_help style.
listcyclem - returns mapcycle in a MOTD popup paginated amx_help style
listcyclem <target> - returns mapcycle maps containing search target in a MOTD popup window.
Changelog:
v1.6 - JTP10181 - 07/24/05
Fixed bug causing it to not compile on loadfile mode
Merged in multi-language code from faluco (Thanks!)
v1.5 - JTP10181 - 10/17/04
Fixed readdir code so it works on linux (thanks PM)
Small tweaks to code to fix some dumb things I did
v1.4 - JTP10181 - 07/22/04
Added new compile option to enable listcycle to list the current mapcycle
Fixed a few random things that I was doing incorrectly
Condensed the "admin" command function into one function
v1.3 - JTP10181 - 07/02/04
Added some new code to catch "say listmaps" and block it from being used by other plugins (Deags Map Manager)
Added MOTD popup support in the form of "listmapsm"
Added some basic dupe checking where it loads the maps in from a dir
Added function to sort the array with the maps
Added advanced dupe checking into the sorting function
v1.2.2 - JTP10181
Tweaked the help info for the commands a little
Fixed some hardcoded paths I left in on accident
v1.2.1 - JTP10181
Changed all printed messages to use the [AMXX] tag instead of [AMX]
v1.2 - JTP10181
Added ability to read from a file as a compile option
Fixes for steam (.ztmp files ignored)
Added listmaps output to console amx_help style (thanks tcquest78for amx_help code)
Added a "currentmap" response to the say handler, people are always asking this.
Added lots of other common triggers to a handle say catch so anyone trying to find maps should not have a problem
Below v1.2 was maintained by Eric Lidman
********************************************* ******************************/
In case anyone is wondering I was given rights to maintain all Luds plugins by Eric Lidman himself.
To use the listcycle mode you moust download the SMA, change the define setting and compile the plugin yourself.
Check out my CVS for all the plugins I have worked on. Many are not released anywhere except the CVS because they are not my plugins orginally.
http://web.thekingpin.net/cgi-bin/cvsweb.cgi/jtp10181/
plugin
source