Waiting for a game to start
-
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?

-
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"); }
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login