TheNiceUb3r
Veteran
- Messages
- 45
- Reaction score
- 46
- Points
- 793
I was messing around tonight and thought I would post this since its something I got done tonight, Its pretty much an improvement on the map change that everyone uses but now it will update the picture to the map you are changing it to also fixes the checkerboard box that comes up and it bugging out kicking you randomly giving session errors and also lets people join once map has been changed which before would say player has left game.
Hope you guys enjoy I know it is simple but very useful!
New Change Map Code
How To Call It
Hope you guys enjoy I know it is simple but very useful!
New Change Map Code
Code:
ChangeMapFixed(MapName)
{
self iprintlnbold("^5Map Name Being Changed To ^2"+MapName+"!");
wait 0.50;
setDvar("ls_mapname", MapName);
setDvar("mapname", MapName);
setDvar("party_mapname", MapName);
setDvar("ui_mapname", MapName);
setDvar("ui_currentMap", MapName);
setDvar("ui_mapname", MapName);
setDvar("ui_preview_map", MapName);
setDvar("ui_showmap", MapName);
map( MapName, false );
}
How To Call It
Code:
self add_option("map_change", "Plaza", ::ChangeMapFixed, "mp_nightclub");