IsPlayerInDynamicArea(playerid, areaid)
#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


Messages In This Thread
IsPlayerInDynamicArea(playerid, areaid) - by AnonScripter - 08.11.2013, 13:36
Re: IsPlayerInDynamicArea(playerid, areaid) - by Konstantinos - 08.11.2013, 13:47
Re: IsPlayerInDynamicArea(playerid, areaid) - by AnonScripter - 08.11.2013, 13:49
Re: IsPlayerInDynamicArea(playerid, areaid) - by Konstantinos - 08.11.2013, 13:55
Re: IsPlayerInDynamicArea(playerid, areaid) - by AnonScripter - 08.11.2013, 14:12

Forum Jump:


Users browsing this thread: 1 Guest(s)