Advertisement
Guest User

Untitled

a guest
Mar 18th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. public AdvertiseToPlayersAtBusStop(Float:stopX, Float:stopY, Float:stopZ, eastorwest)
  2. {
  3. for (new i; i<=MAX_PLAYERS; i++)
  4. {
  5. if (IsPlayerConnected(i) && BusrouteWest[i][0] == 0 && BusrouteEast[i][0] == 0)
  6. {
  7. if (PlayerToPoint(100, i, stopX, stopY, stopZ))
  8. {
  9. SendClientMessage(i, TEAM_AZTECAS_COLOR, "A bus is enroute to a nearby stop. The route is as follows:");
  10. if (eastorwest == 0) SendBusRoute(i, 0);
  11. else SendBusRoute(i, 1);
  12. SendClientMessage(i, TEAM_AZTECAS_COLOR, "Would you like to be shown the location of this stop? (yes/no)");
  13. BusShowLocation[i][0] = 1;
  14. BusShowLocation[i][1] = stopX;
  15. BusShowLocation[i][2] = stopY;
  16. BusShowLocation[i][3] = stopZ;
  17. }
  18. }
  19. }
  20. return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement