Martex

autorace

Apr 18th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. CMD:startautorace(playerid, params[])
  2. {
  3. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, redcolor, "<!> You are not an administrator!");
  4. if(RaceBusy == 0x01 || RaceStarted == 1) return SendClientMessage(playerid, redcolor, "<!> There's a race currently. Wait first till race ends!");
  5. if(AutomaticRace == true) return SendClientMessage(playerid, redcolor, "<!> It's already enabled!");
  6. LoadRaceNames();
  7. LoadAutoRace(RaceNames[random(TotalRaces)]);
  8. AutomaticRace = true;
  9. SendClientMessage(playerid, GREEN, ">> You stared auto race. The filterscript will start a random race everytime the previous race is over!");
  10. return 1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment