IsPlayerInDynamicArea(playerid, areaid)
#1

can somebody tell me how to use this function, and what to put in areaid ?
Reply
#2

It's supposed when you use one of these:
pawn Код:
native CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicSphere(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicCube(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicPolygon(Float:points[], Float:minz = -FLOAT_INFINITY, Float:maxz = FLOAT_INFINITY, maxpoints = sizeof points, worldid = -1, interiorid = -1, playerid = -1);
it returns the areaid. Then you can check if the player is in the dynamic area.
Reply
#3

whats the difference between these 5 natives ? and can u please give me an example how to use
Reply
#4

I've never used them but the difference is self-explanatory from their name.

1st: It creates a circle.
2nd: It creates a rectangle.
3rd: It creates a sphere.
4th: It creates a cube.
5th: It creates a polygon.

Use ****** and I'm sure you'll find some examples.
Reply
#5

thanks it fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)