SA-MP Forums Archive
How to calculate the house area - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to calculate the house area (/showthread.php?tid=604113)



How to calculate the house area - feheristi97 - 31.03.2016

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?




Re: How to calculate the house area - Harty - 31.03.2016

Use range of point function.


Re: How to calculate the house area - feheristi97 - 31.03.2016

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


Re: How to calculate the house area - SickAttack - 31.03.2016

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


Re: How to calculate the house area - Kar - 31.03.2016

streamer plugin.

CreateDynamicPolygon.

Good luck, it's a great idea.


Re: How to calculate the house area - feheristi97 - 01.04.2016

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


Re: How to calculate the house area - SickAttack - 01.04.2016

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


Re: How to calculate the house area - feheristi97 - 01.04.2016

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..


Re: How to calculate the house area - SickAttack - 01.04.2016

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


Re: How to calculate the house area - Vince - 01.04.2016

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.