18.04.2013, 22:33
That is a good idea but what if the vehicle is airborne, on a hill etc then this won't work.
There is one other way but it's a bit of work.
Use incognito's streamer and these functions
Define your water areas then check to see if a vehicle's position is in your water areas.
There is one other way but it's a bit of work.
Use incognito's streamer and these functions
Код:
native CreateDynamicPolygon(Float:points[], Float:minz = -FLOAT_INFINITY, Float:maxz = FLOAT_INFINITY, maxpoints = sizeof points, worldid = -1, interiorid = -1, playerid = -1); native IsPointInDynamicArea(areaid, Float:x, Float:y, Float:z);