SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Discussion

Reply
 
Thread Tools Display Modes
Old 05/11/2017, 02:36 PM   #1
Chaser98
Little Clucker
 
Join Date: Nov 2010
Posts: 47
Reputation: 26
Default Path nodes to zone polygons?

Hey guys, I've been wanting to essentially make a 2d polygon zone of all the roads and streets in SA and essentially have street names like in GTA V.

I know there's data on the path nodes but I don't know how I'd go about converting it to polygon zones w/ streamer plugin.

There may be an easier way of doing this, and if you know, please share and I'd appreciate it.

EDIT: I think I may have posted in wrong section. If I did, please move it mods. My apologies.
Chaser98 is offline   Reply With Quote
Old 08/11/2017, 03:22 PM   #2
cessil
High-roller
 
cessil's Avatar
 
Join Date: Apr 2009
Posts: 1,353
Reputation: 296
Default Re: Path nodes to zone polygons?

yes there are nodes and from them you can determine several things like if a player is driving on the wrong side of the road or on a road at all, you could also attach names to the roads to display to players which is what you are looking for
http://forum.sa-mp.com/showthread.php?t=575149

given that the nodes are a mess and you won't be able to read them and know exactly where they are what I would do is create a program to visualise the nodes with the san andreas map as a background and have the function to add an id to each node which would link to a string of the road name
which is also something I did but without the ability to add names to roads
http://forum.sa-mp.com/showthread.php?t=564533
cessil is offline   Reply With Quote
Old 16/11/2017, 02:38 AM   #3
Chaser98
Little Clucker
 
Join Date: Nov 2010
Posts: 47
Reputation: 26
Default Re: Path nodes to zone polygons?

Is there any way other than manual drawing to separate road from road? Like when a road dead ends into another road with a different name.
Chaser98 is offline   Reply With Quote
Old 16/11/2017, 10:59 PM   #4
cessil
High-roller
 
cessil's Avatar
 
Join Date: Apr 2009
Posts: 1,353
Reputation: 296
Default Re: Path nodes to zone polygons?

yes there would be if you scripted it to since you could grab a node and run a loop to grab all it's neighbours till it runs into an intersection
cessil is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Path nodes Dayvison_ Scripting Help 2 29/10/2016 07:42 PM
Visible Polygons jeffery30162 Scripting Help 2 03/11/2015 10:50 PM
A little help regarding polygons JustBored Scripting Help 1 19/12/2014 04:39 AM
[Include] polygons Seregamil1 Includes 16 10/11/2014 09:11 PM
[Include] polygons Seregamil1 Релизы/Releases 6 06/11/2014 06:47 AM


All times are GMT. The time now is 01:40 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.