SA-MP Forums Archive
Areacheck - 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: Areacheck (/showthread.php?tid=354095)



Areacheck - davve95 - 25.06.2012

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


Re: Areacheck - GeorgeBrown - 25.06.2012

You can easily use streamer

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


Re: Areacheck - davve95 - 25.06.2012

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


Re: Areacheck - [KHK]Khalid - 25.06.2012

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();



Re: Areacheck - davve95 - 25.06.2012

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


Re: Areacheck - davve95 - 26.06.2012

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??..


Re: Areacheck - ViniBorn - 26.06.2012

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

Type /save in the point B and point D.

BX = MaxX
BY = MaxY
DX = MinX
DY = MinY


Re: Areacheck - [KHK]Khalid - 26.06.2012

Use this method here.


Re: Areacheck - davve95 - 27.06.2012

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