BSP Map Finder
Posted by leaX
Tuesday, October 23, 2007
Description: ...
Hey guys,
I made this script because I needed to get all my maps filenames and put them in my map list for amxmodx. Its very simple to use.
1) Copy (Ctrl+c)
2) Go to mIRC and hit alt-r
3) Paste (Ctrl+v)
4) Click OK
5) Type /bsp
6) Then the script will help you on from there :>
7) Any bugs please post here :<
Hey guys,
I made this script because I needed to get all my maps filenames and put them in my map list for amxmodx. Its very simple to use.
1) Copy (Ctrl+c)
2) Go to mIRC and hit alt-r
3) Paste (Ctrl+v)
4) Click OK
5) Type /bsp
6) Then the script will help you on from there :>
7) Any bugs please post here :<
alias bsp {
if (!%dir) {
set %dir $sdir(C:/,Select your map folder)
}
else {
dialog -vm bsp bsp
window -a @Maps
/echo @Maps --Your Current Map List /start--
}
}
dialog bsp {
title "BSP by leaX"
size -1 -1 363 78
text "In what format would you like your maps in?", 1, 0 17 263 13, center
button "FilePath", 2, 14 43 75 23
button "Map Name", 3, 95 43 75 23
button "Map Name (Without .Bsp)", 4, 176 43 175 23
text "", 5, 0 0 0 0, result
button "", 6, 0 0 0 0, ok
}
on 1:dialog:bsp:sclick:*: {
if ($did isnum 2-4) {
:start
if ($window(@maps) != $null) {
var %bsp 1
while ($findfile(%dir,*.bsp,%bsp)) {
var %v1 $v1
if ($did == 2) {
echo @maps %v1
}
if ($did == 3) {
echo @maps $remove(%v1,%dir)
}
if ($did == 4) {
echo @maps $remove($remove(%v1,%dir),.bsp)
}
inc %bsp 1
}
/echo @Maps --Your Current Map List /end--
/dialog -x bsp
}
else {
window -ae @Maps
goto start
}
}
}