Alternative112

Untitled

Jul 21st, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. if (!IsPlayerNPC(playerid) && AutomaticRace == true) {
  2. print("1");
  3. for (new i = 0; i < GetMaxPlayers(); i++) {
  4. printf("%i", i);
  5. if (IsPlayerConnected(i) && !IsPlayerNPC(i)) {
  6. printf("Real player");
  7. //If there is another player online, immediately return 1
  8. AutomaticRace = true;
  9. return 1;
  10. }
  11. }
  12. //If we found nobody online, turn automatic races off.
  13. AutomaticRace = false;
  14. print("set to false");
  15. }
Advertisement
Add Comment
Please, Sign In to add comment