02.01.2015, 16:24
If you would like to do a area check with the streamer plugin/ include, Use the following callbacks/ functions
I suggest reading Areacheck on SA-MP wiki if do not want to use the streamer.
- https://sampwiki.blast.hk/wiki/Areacheck
pawn Code:
native CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicCuboid(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1);
forward OnPlayerEnterDynamicArea(playerid, areaid);
forward OnPlayerLeaveDynamicArea(playerid, areaid);
- https://sampwiki.blast.hk/wiki/Areacheck