Default Map Changer

A Config Script for Counter-Strike: Source

Greetings! We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Kortul points.
  • Post: Give Kortul your thoughts on this Script.
  • Vote: Help Kortul win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Sound fun?

Sign up

Already a Bananite? Login

34 lines | 744 bytes | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//Made by Kortul
//Allows the server's default map to be changed without command line access
//only edit the line indicated below

block load
{
        es_xset key_exist 0
        es_exists key_exist variable mapnotchanged
        if (server_var(key_exist) == 0) do
        {
                // once the new default map has been loaded, this is set to 0 to prevent map load loop
                es_xset mapnotchanged 1
        }
        else do
        {
                es_soon es_unload default_map_changer
        }

}

event round_start
{
        //set server's default map
        if (server_var(mapnotchanged) == 1) do
        {
                es_xset mapnotchanged 0
//****************EDIT map name to use as default map below****************
                changelevel gg_trs_aim_churches
        }
        else do
        {
                es_soon es_unload default_map_changer
        }
}
This script allows server operators without command line access to set a default map for the server to start on. Save code as es_default_map_changer.txt, create a folder called es_default_map_loader and place the text file there. Then place the folder in your eventscripts folder. Open the text file and edit the line as indicated within to set your server's default map.

Posts

None found

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Key Authors
Daniel L
Author

Submitter

Kortul avatar
Kortul Offline
Member Joined 9y

Kortul
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Attributes

Miscellaneous

Stats

Posts
0
Views
3,439
Date Added
8y
bcp.crwdcntrl.net tracking pixel