Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. MW3 Server Hosting Support
  3. Waiting for a game to start

Waiting for a game to start

Scheduled Pinned Locked Moved MW3 Server Hosting Support
2 Posts 1 Posters 71 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • hikinataundefined Offline
    hikinataundefined Offline
    hikinata
    wrote last edited by hikinata
    #1

    Hey! I want to start my server, but I want there to be a wait time before the game starts! 🤡

    I was using:

    set scr_game_playerwaittime "90" -> But if the minimum number of players connects, it cancels the countdown.
    set scr_game_matchstarttime "90" -> It works, but for search and destroy, for example, it resets to 90 at the end of each round.
    set scr_game_roundstarttime "5" -> It does nothing...

    I tried using GSC, but without success...😢

    `Init()`
    
    `level thread` `ForcePreMatchDelay()`;
    
    }
    
    `ForcePreMatchDelay()`
    
    `level waittill("connected");`
    `wait 90;`
    
    }
    

    Any ideas?👍

    1 Reply Last reply
    0
    • hikinataundefined Offline
      hikinataundefined Offline
      hikinata
      wrote last edited by hikinata
      #2

      I made this ..that works

      Init()
      {
          level thread ForcePreMatchDelay();
      }
      
      ForcePreMatchDelay()
      {
          level waittill("connected"); 
      
         
          currentDelay = getDvarInt("scr_game_matchstarttime");
      
          wait currentDelay;
      
          setDvar("scr_game_matchstarttime", "10");
      }
      
      1 Reply Last reply
      1
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Donate