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