Gang Zones
#1

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!
Reply
#2

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
}
Reply
#3

awesome thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)