[CS:GO] Change game type/mode via admin menu with proper map group
Hello guys,
here is another solution to a problem that i have encountered when setting up my server. Hopefully this will help others too THE PROBLEM: Since i'm running a one instance server in my house, sometimes i'm playing with my buddies and i want to switch mode. Normally i would have to kill the server and start it again from another shortcut using the appropriate switches to run it in another mode. This obviously disconnects my friends and makes us loose a lot of time in the process of connecting again and restarting the game once everybody connects to the server. While trying to find a solution to this problem i stumbled upon a plugin that ALMOST solved my problem. This plugin is: Rock The Mode found @ http://forums.alliedmods.net/showthread.php?t=196148 The plugin worked pretty well considering it has a command that once issued switches mode immediately. "You just add them to the admin menu and boom!" you would say, but it is not even remotely close to that. Other issues popped up. Mainly the fact that admin menu wasn't issuing the commands properly, second the fact that it would change mode on current level (immagine arms race in dust2) and third the mapcycle would be messed up. I will explain how i managed to fix all of it and integrate my fix for mapcycle found here: https://forums.alliedmods.net/showth...18#post1884118 THE SOLUTION: 1. Install the plguin RockTheMode from http://forums.alliedmods.net/showthread.php?t=196148 2. Go to \csgo\cfg\sourcemod\ folder and create one cfg file for each mode ("mode_armsrace.cfg" and so on). 3. Go to \csgo\addons\sourcemod\configs\ folder and modify "adminmenu_cfgs.txt" as follows (or according to the modes that you use): Code:
/**4. Make sure that you modify "adminmenu_sorting.txt" and add the following in the order you like: Code:
"ServerCommands"5. Now we have to define what goes inside each CFG file that we created inside \csgo\cfg\sourcemod\ folder. I will break it down just to explain what each command does (in theory). Take for example the file "mode_armsrace.cfg". Here is the content of mine: Code:
sm_nextmap "ar_baggage"Code:
sm_nextmap "ar_baggage" //Defines the SECOND map inside your mapcyclefileI've tested this multiple times and it works like a charm. Server switches mode, loads proper mapcycle and won't disconnect users. I haven't found any side effects yet. If you do let me know. Have fun!! |
Re: [CS:GO] Change game type/mode via admin menu with proper map group
I've updated Next Map Mode to hopefully alleviate some of the problems you've addressed. =)
|
Re: [CS:GO] Change game type/mode via admin menu with proper map group
Is there any way to make this random?
|
| All times are GMT -4. The time now is 18:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.