SA-MP Forums Archive
Gang Zones - 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 Zones (/showthread.php?tid=143063)



Gang Zones - BLAbla93 - 21.04.2010

How would i make command once used checks to make sure your in the correct gang zone

so say this is my code

Code:
new gangzone;
gangzone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319); // from samp wiki
Code:
How would i check if the player is in the gang zone or not when they use the command.

all help is appreciated thanks!



Re: Gang Zones - Backwardsman97 - 21.04.2010

pawn Code:
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid,X,Y,Z);
if((X > 1248.011) && (X < 1439.348) && (Y > 2072.804) && (Y < 2204.319))
{
   //Code here
}



Re: Gang Zones - BLAbla93 - 21.04.2010

awesome thanks