Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!IsPlayerNPC(playerid) && AutomaticRace == true) {
- print("1");
- for (new i = 0; i < GetMaxPlayers(); i++) {
- printf("%i", i);
- if (IsPlayerConnected(i) && !IsPlayerNPC(i)) {
- printf("Real player");
- //If there is another player online, immediately return 1
- AutomaticRace = true;
- return 1;
- }
- }
- //If we found nobody online, turn automatic races off.
- AutomaticRace = false;
- print("set to false");
- }
Advertisement
Add Comment
Please, Sign In to add comment