23.08.2017, 13:58
(
Последний раз редактировалось thegamer355; 23.08.2017 в 18:57.
)
So i've looked into the code a bit, it shouldn't be that hard to make.
At the function StopRace() there is a line which says the following:
In this line you should replace the loadrace parts with a timer of 900 000 milliseconds.
So the line would be like this:
So that line would now look like:
In the top of the script you should add:
To actually make the timer do shit, you should make the NextAutoRaceTimer stuff.
Which will be the following:
Some more explanation:
Once a race finishes StopRace is being called. In here you add a timer of 15 minutes, once this finishes, you call the next function which starts a new one.
I haven't tested this, as i didn't unpack all the files, but this is how i do it in my own scripts, and it has never let me down
-TG
At the function StopRace() there is a line which says the following:
pawn Код:
if(AutomaticRace == true) LoadRaceNames(), LoadAutoRace(RaceNames[random(TotalRaces)]);
So the line would be like this:
pawn Код:
SetTimerEx("NextAutoRaceTimer", 900000, false, ""); // the false to make it not repeat, as you only want to start the timer when the previous race is finished
pawn Код:
if(AutomaticRace == true) SetTimerEx("NextAutoRaceTimer", 900000, false, "");
pawn Код:
forward NextAutoRaceTimer();
Which will be the following:
pawn Код:
public NextAutoRaceTimer()
{
LoadRaceNames()
LoadAutoRace(RaceNames[random(TotalRaces)]);
}
Once a race finishes StopRace is being called. In here you add a timer of 15 minutes, once this finishes, you call the next function which starts a new one.
I haven't tested this, as i didn't unpack all the files, but this is how i do it in my own scripts, and it has never let me down
-TG