mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
Create multipleMapRotation.cs
This commit is contained in:
parent
f5f729f79b
commit
101382d272
28
Classic/scripts/autoexec/multipleMapRotation.cs
Normal file
28
Classic/scripts/autoexec/multipleMapRotation.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
//Enable/Disable
|
||||
$EnableMultipleMapRotation = 0;
|
||||
|
||||
//How any mapRotation Files
|
||||
//Naming scheme mapRotation1.cs, mapRotation2.cs, mapRotation3.cs, etc
|
||||
$mapRotationFilesCount = 3;
|
||||
|
||||
function multipleMapRotation()
|
||||
{
|
||||
if($EnableMultipleMapRotation)
|
||||
{
|
||||
%random = getrandom(1, $mapRotationFilesCount);
|
||||
%mapRot = "prefs/mapRotation" @ %random @ ".cs";
|
||||
$Host::ClassicRotationFile = %mapRot;
|
||||
|
||||
//Echo at start
|
||||
schedule(10000,0,"multipleMapRotationEcho",0);
|
||||
}
|
||||
}
|
||||
|
||||
//Echo at start
|
||||
function multipleMapRotationEcho()
|
||||
{
|
||||
echo("Current MapRotation: " @ $Host::ClassicRotationFile);
|
||||
}
|
||||
|
||||
//Run
|
||||
multipleMapRotation();
|
||||
Loading…
Reference in a new issue