14.04.2019, 10:38
You need an array of coordinates (X and Y coord pairs), and declare it like this:
As you might have noticed, the very last pair must be equal to the first, so that the polygon closes. Then pass this array to CreateDynamicPolygon (to the "points" argument). Minimum and maximum Z can be adjusted in the function.
Code:
new Float:polygon_coords[] =
{
408.2250, 2173.6580, // Point 1
346.6827, 1643.3701, // Point 2
-122.9496, 1689.5978, // Point 3
408.2250, 2173.6580 // Point 1 to close it
};

