Martex

Bug

Apr 18th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. function StopRace()
  2. {
  3. KillTimer(rCounter);
  4. RaceStarted = 0;
  5. RaceTick = 0;
  6. RaceBusy = 0x00;
  7. JoinCount = 0;
  8. FinishCount = 0;
  9. TimeProgress = 0;
  10.  
  11. ForEach(i, MAX_PLAYERS)
  12. {
  13. if(Joined[i] == true)
  14. {
  15. DisablePlayerRaceCheckpoint(i);
  16. DestroyVehicle(CreatedRaceVeh[i]);
  17. Joined[i] = false;
  18. TextDrawHideForPlayer(i, RaceInfo[i]);
  19. CPProgess[i] = 0;
  20. KillTimer(InfoTimer[i]);
  21. }
  22. }
  23. SendClientMessageToAll(YELLOW, ">> Race time is over!");
  24. if(AutomaticRace == true)
  25. {
  26. SetTimer("LoadaRace", 30000, false);
  27. }
  28. return 1;
  29. }
  30. forward LoadaRace();
  31. public LoadaRace()
  32. {
  33. LoadRaceNames(), LoadAutoRace(RaceNames[random(TotalRaces)]);
  34. return 1;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment