Ulysses
Ulysses Stuff => Releases => Ulysses Release Archives => Topic started by: benbrooks on September 21, 2008, 12:26:52 PM
-
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.
umaps_changemap mapname
Nextmap: gm_wireconstruct_rc
Ben: nextmap
] umaps_changemap gm_botmap_v2
Nextmap: gm_botmap_v2
Ben: nextmap
-
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.
-
Ah yes, I never thought of validation!
I'll see what my friend can come up with :P