IsPlayerInDynamicArea [REP++]
#1

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.
Reply
#2

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

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
Reply
#4

So whats new ??!
What is recheck ??
Please Help
Reply
#5

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.
Reply
#6

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.
Reply
#7

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

pawn Code:
new area51 = CreateDynamicRectangle(blablabla);

IsPlayerInDynamicArea(playerid, area51);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)