I need the InPoly of the sunshine

Started by Kid_Buu, Jun 10, 2018, 10:10 PM

Previous topic - Next topic

Kid_Buu

Hi, i need the InPoly of the sunshine, someone could give it to me?

I do not know how to use it :-\

D4rkR420R

There's a diagram of polygons below in this site, following by an example. https://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/InPoly

Magneto

Quote from: Kid_Buu on Jun 10, 2018, 10:10 PMHi, i need the InPoly of the sunshine, someone could give it to me?

I do not know how to use it :-\

Use this:
            checkpoly = InPoly( Pos.x, Pos.y, -1018.44, -878.276, -1003.84, -864.357, -1031.79, -834.803, -1044.99, -848.48);
   
    if( !checkpoly ) I_MSG( "You need to be at sunshine....", player );

NicusorN5

It's easier to use :
DistanceFromPoint(x1,y1,x2,y2)