29.05.2009, 16:35
Hi
I have some problems. I'm making a new game mode which uses gang zones.
I took the coords for the zones right from the info.zon file, so I know the coordinates are correct.
But when the player spawns, only about half of the zones is shown (see map).
Los Santos is split into 30 areas, with the use of 142 gang zones. How can I fix it, so ALL zones show when a player spawns? I added some screens:
Whole map (note missing part of Los Santos Airport):
![](http://i44.tinypic.com/28heo9d.png)
Los Santos Airport and El Corona only enabled:
![](http://i39.tinypic.com/2crrq1j.png)
I have some problems. I'm making a new game mode which uses gang zones.
I took the coords for the zones right from the info.zon file, so I know the coordinates are correct.
But when the player spawns, only about half of the zones is shown (see map).
pawn Код:
public OnPlayerSpawn(playerid)
{
for(new i = 0; i <= MAX_ZONES_PER_AREA; i++)
{
GangZoneShowForPlayer(playerid, GZ_LAIR[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_ELCO[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_LIND[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_LDOC[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_VERO[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_BLUF[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_MARI[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_CONF[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_GLEN[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_COMM[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_PER[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_LMEX[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_IWD[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_JEF[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_CHC[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_GAN[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_EBE[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_ELS[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_LFL[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_LDT[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_MULINT[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_MUL[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_MKT[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_VIN[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_SUN[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_SMB[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_ROD[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_RIH[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_UNITY[i], 0x0000FF66);
GangZoneShowForPlayer(playerid, GZ_PLS[i], 0x0000FF66);
}
return 1;
}
Whole map (note missing part of Los Santos Airport):
![](http://i44.tinypic.com/28heo9d.png)
Los Santos Airport and El Corona only enabled:
![](http://i39.tinypic.com/2crrq1j.png)