Ulysses Stuff > Ulysses Release Archives
uMaps changemap plugin
(1/1)
benbrooks:
I've always wanted to change the nextmap in uMaps manually, So I asked a friend today to get to work and this is what he came up with.
A standalone script that goes in /lua/autorun/server.
To change the nextmap, type this in the console. By default, only admins can change the nextmap.
--- Code: ---umaps_changemap mapname
--- End code ---
--- Quote ---Nextmap: gm_wireconstruct_rc
Ben: nextmap
] umaps_changemap gm_botmap_v2
Nextmap: gm_botmap_v2
Ben: nextmap
--- End quote ---
Megiddo:
Good work! I strongly urge you to verify that the map being passed in is a valid map, however. If you don't want to check the maps directory directly (which is what I'd recommend), you can use the ulx.maps table to verify.
benbrooks:
Ah yes, I never thought of validation!
I'll see what my friend can come up with :P
Navigation
[0] Message Index
Go to full version