[Release] Zombie Server Lock after Round 30 (Configurable)
-
The "Zombie Server Lock after Round 30" script is a tool designed for T6ZM server. It allows you to maintain the integrity of high-round records and make your server more competitive.
Features:
-
Automatic Lock: This script monitors the current round number and, when it reaches round 30 or higher, it automatically locks the server to prevent additional players from joining.
-
Customizable Password: You can define a server password of your choice to limit access to authorized players. When the server is locked, joining players will need to enter the specified password.
-
Dynamic Unlock: If the round number drops back to 30 or lower, the script will automatically unlock the server, allowing new players to join.
-
User-Friendly: Easy installation and usage. Simply place the script in the designated directory.
Installation :
-
Ensure you have T6ZM Server installed.
-
Place the script in the following directory:
-
AppData\Local\Plutonium\storage\t6\scripts\zm
-
-
https://github.com/DoktorSAS/GSC/blob/main/T6/zm/zombies%2B%2B%2B.gsc
Here is an alternative version of it. It have also a few other things but the logic is the same or simpler since it possible to lock set the lock round and the password to set.
Dvars:
- sv_password : Password used to lock the server once reached a specific round
- sv_lockround : If specified will prevent players from joing after round specifided -
Sorex I didn't see the purpose of adding dvars in this case.
-
PoPoFR
It just to be a generic script by default.Suggestion, you can remove the line
wait 60; // Wait 60 seconds before checking again
and change it to
break;
Since the code after the set password is not longer needed there is no use for that and you can kill the thread. You can also remove onPlayerConnect since its serve no use in this case.
If you want to reset the password for the next game you can just use a waittill or set it on the init once.
-
Sorex done thx for suggestion !