PDA

View Full Version : IsPlayerInDynamicArea [REP++]


nezo2001
19/01/2015, 07:00 PM
Please this is the first time to work with streamer
Help me in IsPlayerInDynamicArea and with its params and how to use it.
Thank You.

Schneider
19/01/2015, 07:03 PM
CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
IsPlayerInDynamicArea(playerid, areaid, recheck = 0);

CalvinC
19/01/2015, 07:03 PM
Haven't used it before, for the params just check the topic (http://forum.sa-mp.com/showthread.php?t=102865).
IsPlayerInDynamicArea(playerid, areaid, recheck = 0);

It might work like this, not sure though.
http://wiki.sa-mp.com/wiki/Areacheck

nezo2001
19/01/2015, 07:05 PM
So whats new ??!
What is recheck ??
Please Help

Schneider
19/01/2015, 07:14 PM
Added a new parameter called "recheck" to Is(Any)PlayerIn(Any)DynamicArea which allows an area check to occur without issuing a full update for the player
I don't understand it, and I think you shouldn't have to worry about that.

CalvinC
19/01/2015, 07:16 PM
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);
These functions return the areaid.

Couldn't find anything about recheck though, shouldn't be needed to use though, got no errors/warnings when i removed it.

nezo2001
19/01/2015, 07:18 PM
So what i should write in it ?

IsPlayerInDynamicArea(areaid, ????);

Edit: ok i will try

Schneider
19/01/2015, 07:20 PM
new area51 = CreateDynamicRectangle(blablabla);

IsPlayerInDynamicArea(playerid, area51);