Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function StopRace()
- {
- KillTimer(rCounter);
- RaceStarted = 0;
- RaceTick = 0;
- RaceBusy = 0x00;
- JoinCount = 0;
- FinishCount = 0;
- TimeProgress = 0;
- ForEach(i, MAX_PLAYERS)
- {
- if(Joined[i] == true)
- {
- DisablePlayerRaceCheckpoint(i);
- DestroyVehicle(CreatedRaceVeh[i]);
- Joined[i] = false;
- TextDrawHideForPlayer(i, RaceInfo[i]);
- CPProgess[i] = 0;
- KillTimer(InfoTimer[i]);
- }
- }
- SendClientMessageToAll(YELLOW, ">> Race time is over!");
- if(AutomaticRace == true)
- {
- SetTimer("LoadaRace", 30000, false);
- }
- return 1;
- }
- forward LoadaRace();
- public LoadaRace()
- {
- LoadRaceNames(), LoadAutoRace(RaceNames[random(TotalRaces)]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment