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