Gang zone message
#1

When you enter a zone, it prints a message
??
Reply
#2

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

Actually it is better using IsPlayerInArea instead of point ^^.
Reply
#4

Or that yes.
Reply
#5

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);
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)