GangZone creating
#1

I got problem with creating GangZone.
It worked fine unlike previous topics that i made.

But the problem is.
It is hard to get the min and max coordinates when there is gangzone next to the gangzone that you will make (or surrounded by gangzone and there is empty space).

Making the new gangzone collide in surrounded gangzones or next to the gangzone.

Is there any possibilities to avoid this?

My mouse is hard to control when marking the min and max on map.
Reply
#2

You need to get those positions through edges, that's what I normally do.
pawn Код:
/*
         ymax
     |----------|
     |          |
xmin|          | xmax
     |          |
     |----------|
         ymin
//From wiki sa-mp
To avoid colliding, you can use global variables for gangzones so that the specified functions for a gangzone works for it only. If you're thinking of the visual (Radar), you might be needed to be careful while setting the coords.

Or maybe creating a gangzone according to range may work:
(I probably use this if I'm lazy to get all those coords)
pawn Код:
CMD:gangzone(playerid, params[])
{
 new Float:xp, Float:yp, Float:zp;
 GetPlayerPos(playerid, xp, yp, zp);
 #pragma unused zp
 new range = 100;
 new Gangzone = GangZoneCreate(xp-range, yp-range, xp+range, yp+range);
 GangZoneShowForAll(Gangzone, 0xFF0000FF);
 return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)