11-17-2006, 12:37 PM
(This post was last modified: 11-17-2006, 12:48 PM by theHolyCow)
What will help, in LVP there is a list with streets/locations with 374 items. A lot of these are double but I think there are still 75+ unique locations. Add to those the locations of the properties and we have a huge list of taxi locations.
What I think would be the hardest to code is the function that has to return the matching names and their coordinates. AFAIK sa-mp/pawn don't support regular expressions which would have made it so much simpler. What perhaps would be possible is to borrow the system /gotocar and/or /getid use. Perhaps Peter, FiXeR or Badeend could enlighten us on this. If I have some spare time this weekend I will definitly look into it.
Edit: The coordinates of the streets/locations in LVP are 'zone' coordinates. They describe an area or a box, I'm not sure which. They have to be transformed to point-coordinates, which is relativley simple. They would offcourse have to be testes to make sure you don't teleport to a weird location. In a tree or building and the likeĀ
What I think would be the hardest to code is the function that has to return the matching names and their coordinates. AFAIK sa-mp/pawn don't support regular expressions which would have made it so much simpler. What perhaps would be possible is to borrow the system /gotocar and/or /getid use. Perhaps Peter, FiXeR or Badeend could enlighten us on this. If I have some spare time this weekend I will definitly look into it.
Edit: The coordinates of the streets/locations in LVP are 'zone' coordinates. They describe an area or a box, I'm not sure which. They have to be transformed to point-coordinates, which is relativley simple. They would offcourse have to be testes to make sure you don't teleport to a weird location. In a tree or building and the likeĀ