SA-MP Forums Archive
IsPlayerInDynamicArea [REP++] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IsPlayerInDynamicArea [REP++] (/showthread.php?tid=558899)



IsPlayerInDynamicArea [REP++] - nezo2001 - 19.01.2015

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.


Re: IsPlayerInDynamicArea [REP++] - Schneider - 19.01.2015

pawn Code:
CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
IsPlayerInDynamicArea(playerid, areaid, recheck = 0);



Re: IsPlayerInDynamicArea [REP++] - CalvinC - 19.01.2015

Haven't used it before, for the params just check the topic.
pawn Code:
IsPlayerInDynamicArea(playerid, areaid, recheck = 0);
It might work like this, not sure though.
https://sampwiki.blast.hk/wiki/Areacheck


Re: IsPlayerInDynamicArea [REP++] - nezo2001 - 19.01.2015

So whats new ??!
What is recheck ??
Please Help


Re: IsPlayerInDynamicArea [REP++] - Schneider - 19.01.2015

Quote:

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.


Re: IsPlayerInDynamicArea [REP++] - CalvinC - 19.01.2015

pawn Code:
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.


Re: IsPlayerInDynamicArea [REP++] - nezo2001 - 19.01.2015

So what i should write in it ?
PHP Code:
IsPlayerInDynamicArea(areaid, ????); 
Edit: ok i will try


Re: IsPlayerInDynamicArea [REP++] - Schneider - 19.01.2015

pawn Code:
new area51 = CreateDynamicRectangle(blablabla);

IsPlayerInDynamicArea(playerid, area51);