Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public AdvertiseToPlayersAtBusStop(Float:stopX, Float:stopY, Float:stopZ, eastorwest)
- {
- for (new i; i<=MAX_PLAYERS; i++)
- {
- if (IsPlayerConnected(i) && BusrouteWest[i][0] == 0 && BusrouteEast[i][0] == 0)
- {
- if (PlayerToPoint(100, i, stopX, stopY, stopZ))
- {
- SendClientMessage(i, TEAM_AZTECAS_COLOR, "A bus is enroute to a nearby stop. The route is as follows:");
- if (eastorwest == 0) SendBusRoute(i, 0);
- else SendBusRoute(i, 1);
- SendClientMessage(i, TEAM_AZTECAS_COLOR, "Would you like to be shown the location of this stop? (yes/no)");
- BusShowLocation[i][0] = 1;
- BusShowLocation[i][1] = stopX;
- BusShowLocation[i][2] = stopY;
- BusShowLocation[i][3] = stopZ;
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement