Taxi script not working
#2

Checking the range in OnPlayerClickMap is the problem. If taxi drivers are not in range of 50 meters at the time the player clicks on map, nothing will happen.

I believe the best way to achieve this is by using dynamic areas and not timers. Something like this:
- Player A clicks on map and alerts taxi drivers.
- Create a dynamic sphere at player's position with range of 50 and call Streamer_Update function for all the taxi drivers to update the areas for them.
- Now you have the areaid returned when creating the sphere and stored in variable. When taxi drivers enter the area, OnPlayerEnterDynamicArea will be called and you can execute your code there.
Reply


Messages In This Thread
Taxi script not working - by Adamoneoone - 04.07.2018, 16:45
Re: Taxi script not working - by Calisthenics - 04.07.2018, 17:11
Re: Taxi script not working - by Adamoneoone - 04.07.2018, 17:59
Re: Taxi script not working - by JasonRiggs - 04.07.2018, 18:12
Re: Taxi script not working - by Adamoneoone - 04.07.2018, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)