SA-MP Forums Archive
Gang zone message - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Gang zone message (/showthread.php?tid=203308)



Gang zone message - buzifej - 26.12.2010

When you enter a zone, it prints a message
??


Re: Gang zone message - Mean - 26.12.2010

IsPlayerInRangeOfPoint,
there's no OnPlayerEnterGangZone or something by deufault in SA-MP.


Re: Gang zone message - ToPhrESH - 26.12.2010

Actually it is better using IsPlayerInArea instead of point ^^.


Re: Gang zone message - Mean - 26.12.2010

Or that yes.


Re: Gang zone message - [L3th4l] - 26.12.2010

If you have the Streamer plugin by Incognito, it has area system, so you can easily detect when someone enters an area.

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 DestroyDynamicArea(areaid);
native IsValidDynamicArea(areaid);
native TogglePlayerDynamicArea(playerid, areaid, toggle);
native TogglePlayerAllDynamicAreas(playerid, toggle);
native IsPlayerInDynamicArea(playerid, areaid);
native AttachDynamicAreaToPlayer(areaid, playerid);
native AttachDynamicAreaToVehicle(areaid, vehicleid);
native DestroyAllDynamicAreas();
native CountDynamicAreas();
and
pawn Код:
forward OnPlayerEnterDynamicArea(playerid, areaid);
forward OnPlayerLeaveDynamicArea(playerid, areaid);



Re: Gang zone message - admantis - 26.12.2010

or using
pawn Код:
if (x > minx && x < maxx && y > miny && y < maxy) return 1;
or something like that.