Posts: 560
Threads: 117
Joined: Jan 2011
Reputation:
0
What would be the easiest way to make an automatic address system? My issue is, Let's say we are on rich st. I would want the address to be say 2025 Rich St. for example. How could I determine where I am, and then make the address? Thank you in advance for any suggestions. All are appreciated!!
Posts: 560
Threads: 117
Joined: Jan 2011
Reputation:
0
I see no gamemode releases from you. Could you post a link to that, or a download to garhouse.
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
You could create 'areas'. Then use an "IsPlayerInArea" function to determine if a player is in the area (street). This would be very tough for roads that go in a diagonal direction tho. Streamer plugin also streams areas if you use that already i suggest using that. Make a count variable for that area and when you create a house give it that number and increment the var.
Posts: 560
Threads: 117
Joined: Jan 2011
Reputation:
0
With the area idea, It might be a good way to do it, But seems like hell of a lot of work lol.
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
It would be, the more i think of it the more things would need to be added. There would be other ways like range checking. But none would be easy.
The easiest way would be to just name the houses on a street by streetname and number (manually ie, in your create house func), very simple anyway. And guaranteed to work.
Posts: 560
Threads: 117
Joined: Jan 2011
Reputation:
0
I guess I could add that, something like /createhouse price streetname