Areacheck
#1

Hi!


How should I do to make the areas??, The Wiki didn't helpt enough... And a picture didn't workt there..





Thanks alot for replys
Reply
#2

You can easily use streamer

http://forum.sa-mp.com/showthread.ph...light=streamer
Reply
#3

Quote:
Originally Posted by GeorgeBrown
Посмотреть сообщение
Okay thanks alot! , how to use a it that way?? Then..
Reply
#4

Download it and follow the instructions here written by Incognito then you can use these natives to handle your areas

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);
native DestroyDynamicArea(areaid);
native IsValidDynamicArea(areaid);
native TogglePlayerDynamicArea(playerid, areaid, toggle);
native TogglePlayerAllDynamicAreas(playerid, toggle);
native IsPlayerInDynamicArea(playerid, areaid);
native IsPlayerInAnyDynamicArea(playerid);
native IsPointInDynamicArea(areaid, Float:x, Float:y, Float:z);
native IsPointInAnyDynamicArea(Float:x, Float:y, Float:z);
native AttachDynamicAreaToObject(areaid, objectid, type = STREAMER_OBJECT_TYPE_DYNAMIC, playerid = INVALID_PLAYER_ID);
native AttachDynamicAreaToPlayer(areaid, playerid);
native AttachDynamicAreaToVehicle(areaid, vehicleid);
native DestroyAllDynamicAreas();
native CountDynamicAreas();
Reply
#5

Quote:
Originally Posted by HellSphinX
Посмотреть сообщение
Download it and follow the instructions here written by Incognito then you can use these natives to handle your areas

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);
native DestroyDynamicArea(areaid);
native IsValidDynamicArea(areaid);
native TogglePlayerDynamicArea(playerid, areaid, toggle);
native TogglePlayerAllDynamicAreas(playerid, toggle);
native IsPlayerInDynamicArea(playerid, areaid);
native IsPlayerInAnyDynamicArea(playerid);
native IsPointInDynamicArea(areaid, Float:x, Float:y, Float:z);
native IsPointInAnyDynamicArea(Float:x, Float:y, Float:z);
native AttachDynamicAreaToObject(areaid, objectid, type = STREAMER_OBJECT_TYPE_DYNAMIC, playerid = INVALID_PLAYER_ID);
native AttachDynamicAreaToPlayer(areaid, playerid);
native AttachDynamicAreaToVehicle(areaid, vehicleid);
native DestroyAllDynamicAreas();
native CountDynamicAreas();
Okay thanks alot I will see if I can fix it..
Reply
#6

Thanks alot but I can't still understand how I should get the X,Y,Z in a special area that I want..
How to do it the easiest way??..
Reply
#7

A_____B
|.........|
|.........|
|.........|
D_____ C

Type /save in the point B and point D.

BX = MaxX
BY = MaxY
DX = MinX
DY = MinY
Reply
#8

Use this method here.
Reply
#9

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
A_____B
|.........|
|.........|
|.........|
D_____ C

Type /save in the point B and point D.

BX = MaxX
BY = MaxY
DX = MinX
DY = MinY
Okay thanks alot!, but shouldn't I /save A,B also??.

And wich is the coedintes in the code? That I need..
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)