IsPointInPolygon
#1

Hi,

I found this function here:

http://forum.sa-mp.com/showpost.php?...postcount=1871

But i need also include Z coordinate.
Reply
#2

Incognitos streamer does polygons with z checks.
Reply
#3

And how that function call?
Reply
#4

Make the polygon with
Код:
CreateDynamicPolygon(Float:points[], Float:minz = -FLOAT_INFINITY, Float:maxz = FLOAT_INFINITY, maxpoints = sizeof points, worldid = -1, interiorid = -1, playerid = -1);
and checked if player is in by
Код:
IsPlayerInDynamicArea(playerid, STREAMER_TAG_AREA areaid, recheck = 0);
https://sampforum.blast.hk/showthread.php?tid=102865
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)