Is Business in Gangzone
#1

i can't thing of any way to do it, i'd like some help or the code itself, i really need it
Reply
#2

Use this function
pawn Код:
IsPointInArea(Float:X, Float:Y, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
{
    if(X > MinX && X < MaxX && Y > MinY && Y < MaxY)
    {
        return true;
    }

    return false;
}
Feed the X and Y from the entrance to the business point (pickup/checkpoint pos) and the MinX, MinY, MaxX, MaxY the gangzone borders area (You find them in were you have created the gang zone)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)