it still needs testing, currently if released and you use it, it will change the timescale to A, use the correct time of B, then it will keep changing the timescale to 0.2 repeatedly lagging blockland, and after enough time, it gives a runtime error :D
isn't that so nice? at least i got rid of the syntax errors and stuff, i need to retest it again, i think i fixed it...
function timescales(%timescale1, %time1, %timescale2, %time2, %toggle)
{
if(%toggle = 0)
{
%toggle = 1;
commandtoserver('timescale', %timescale1);
%time = %time1 * 1000;
$timescalesched = schedule(%time, 0, timescales, %toggle);
}
else if(%toggle = 1)
{
%toggle = 0;
commandtoserver('timescale', %timescale2);
%time = %time2 * 1000;
$timescalesched = schedule(%time, 0, timescales, %toggle);
}
else
{
%toggle = 0;
}
if(%timescale1 < 0 || %time1 < 0 || %timescale2 < 0 || %time2 < 0)
{
cancel($timescaleshced);
}
}