Resume Server at last map

A Config Script for Counter-Strike: Source

Yo, buddy. 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 Woomaps points.
  • Post: Give Woomaps your thoughts on this Script.
  • Vote: Help Woomaps 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

39 lines | 954 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
35
36
37
38
39
his script should be installed: ctrike/addons/eventscripts/crashreset/es_crashreset.txt

block load
{
  es_keygroupdelete servercrash
  es_keygroupload servercrash |crashreset
  es_xsetinfo sc_exists 0
  es_exists sc_exists key servercrash server
  if (server_var(sc_exists) equalto 0) do
  {
    es_keycreate servercrash server
  }
  es_xsetinfo sc_load 1
}

block unload
{
  es_keygroupdelete servercrash
}

event es_map_start
{
  if (server_var(sc_load) equalto 1) do
  {
    es_xsetinfo sc_load 0
    es_xsetinfo crash_map 0
    es_keygetvalue crash_map servercrash server currentmap
    if (server_var(crash_map) notequalto server_var(eventscripts_currentmap)) do
    {
     es_delayed 10 changelevel server_var(crash_map)
    }
  }
  else do
  {
    es_delayed 10 es_keysetvalue servercrash server currentmap server_var(eventscripts_currentmap)
    es_delayed 10 es_keygroupsave servercrash |crashreset
  }
}

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
woomaps
Unknown

Submitter

Woomaps avatar
Woomaps Offline
Member Joined 11y
1,355 points Ranked 3476th

Woomaps
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Stats

Posts
0
Views
1,565
Date Added
11y
bcp.crwdcntrl.net tracking pixel