gangzone
#2

Just created this function for you:
You only have to enter the coordinates of the 2 gangzones. The parameters are in the same order as in GangZoneCreate so you can just copy/paste them.

It returns '1' if the zones do overlap and '0' if the zones do not overlap.

pawn Код:
stock DoZonesOverlap(Float:aminx, Float:aminy, Float:amaxx, Float:amaxy, Float:bminx, Float:bminy, Float:bmaxx, Float:bmaxy)
{
    if(!(aminx > bmaxx) && !(amaxx < bminx) && !(amaxy < bminy) && !(aminy > bmaxy)) return 1;
    return 0;
}
Reply


Messages In This Thread
gangzone - by yellow - 19.01.2015, 15:28
Re: gangzone - by Schneider - 19.01.2015, 17:28

Forum Jump:


Users browsing this thread: 1 Guest(s)