How to calculate the house area
#1

Hey! I am working right now on a new house system that I would really like to finish one day. The furniture system is done, now what I have to do is to calculate the house corners with minx and miny... so my big question is all my houses are mapped on sea(ocean) not to far from the original maps and I use little green house pickups to make a house icon, when the player enter in my house area I would like to show a textdraw with the original owner's name. Now the big deal is how can I calculate all the corners for a house? because I have random houses not only 1 house that I use. I have a picture to show you guys what am I thinkin' about... Why is this thing so important for me? So, I have a furniture system that everyone can use in their house area and if I don't get the house area then everyone can put furitures into other player's yard. Any idea how can I get the house area?

Reply
#2

Use range of point function.
Reply
#3

I could use that, but I don't want to because isn't accurate.
Reply
#4

Use areas with the streamer plugin? That would require two areas.
Reply
#5

streamer plugin.

CreateDynamicPolygon.

Good luck, it's a great idea.
Reply
#6

I knew that already.. but tell me how can I calculate it because I have no idea how
Reply
#7

Quote:
Originally Posted by feheristi97
Посмотреть сообщение
I knew that already.. but tell me how can I calculate it because I have no idea how
Search?

https://sampforum.blast.hk/showthread.php?tid=473782
Reply
#8

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
that link doesn't even answer my question.. I type /createhouse and the server will create an area for house. But to do that I need to calculate the area of the house, I need the calculation because I want to make it dynamic..
Reply
#9

Quote:
Originally Posted by feheristi97
Посмотреть сообщение
that link doesn't even answer my question.. I type /createhouse and the server will create an area for house. But to do that I need to calculate the area of the house, I need the calculation because I want to make it dynamic..
Look how it's done.

http://forum.sa-mp.com/showpost.php?...76&postcount=2
Reply
#10

I seem to remember some kind of script or plugin that has a bunch of model sizes listed. There isn't any native function that can tell you the dimensions of an object.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)