SA-MP Forums Archive
Gangzone Problem - Bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gangzone Problem - Bug (/showthread.php?tid=433188)



Gangzone Problem - Bug - JaKe Elite - 26.04.2013

I've got problem.
When i check the gangzone through Game ESC > Menu i saw it all fine creating a rectangular box.

But when i check and go to the minx and miny coordinate position.
The whole map (San Andreas) is covered with color green gangzone (the one that i made).
The only part of the map that wasn't covered is the minx, miny, maxx and maxy.

Screenshot:



Code:

pawn Code:
Zone[0] = GangZoneCreate(2190.9854, -1630.0773, 2539.4421, -2098.5598);

//OnPlayerConnect

GangZoneShowForPlayer(playerid, Zone[0], COLOR_GREEN);



Re: Gangzone Problem - Bug - Civilian - 26.04.2013

pawn Code:
public OnGameModeInt()
{
Zone[0] = GangZoneCreate(2190.9854, -1630.0773, 2539.4421, -2098.5598);
return 1;
}

public OnPlayerSpawn(playerid)
{
GangZoneShowForAll(Zone[0], COLOR_GREEN);
return 1;
}



Re: Gangzone Problem - Bug - JaKe Elite - 26.04.2013

that's doesn't make any sense.
The difference in the code is you're making the gangzone show for all players.
So it means when there is players and already gangzone showed.

It will show gangzone to all players online everytime there is new player joined.

That doesn't fix the problem.


Re: Gangzone Problem - Bug - Civilian - 26.04.2013

you want to see gang zone for all player or just for player?


Re: Gangzone Problem - Bug - JaKe Elite - 26.04.2013



Code:
I've got problem.
When i check the gangzone through Game ESC > Menu i saw it all fine creating a rectangular box.

But when i check and go to the minx and miny coordinate position.
The whole map (San Andreas) is covered with color green gangzone (the one that i made).
The only part of the map that wasn't covered is the minx, miny, maxx and maxy.
I didn't said anything about showing it all for players or for players only.
I've got problems that when i reach inside the gangzone. The gangzone disappears then the whole San Andreas map are covered with that gangzone.


Re: Gangzone Problem - Bug - JaKe Elite - 26.04.2013

Never mind.
i use gangzonecreate wrong. fixed.