SA-MP Forums Archive
[Help] Gang Zones won't show! - 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: [Help] Gang Zones won't show! (/showthread.php?tid=352847)



[Help] Gang Zones won't show! - ivanVU - 21.06.2012

I made Gang Zone's with this tutorial : https://sampforum.blast.hk/showthread.php?tid=276352 , and they won't show!


This are the zones
Код:
new ZoneInfo[][eZone] = {
    {-992.6194, 1903.494, -373.692, 2195.441,NICIJA}, // brana
    {233.5575, 677.3168, 992.6194, 1039.331,NICIJA}, // kamenolom
    {-2826.046, 2183.763, -2137.051, 2674.233,NICIJA}, // marina
    {-163.4902, 2370.609, 490.4708, 2639.2,NICIJA}, // stari aero
    {-105.1009, 1623.225, 432.0814, 2148.729,NICIJA}, // area51
    {-1669.936, 443.7593, -712.3504, 1424.701,NICIJA} // mostovi
};
The creation of zones

Код:
	foreach(Player,i)
	{
    ZoneID[i] = GangZoneCreate(ZoneInfo[i][zMinX], ZoneInfo[i][zMinY], ZoneInfo[i][zMaxX], ZoneInfo[i][zMaxY]);
	}
The showing
Код:
	foreach(Player,i)
	{
    GangZoneShowForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneInfo[i][zTeam]));
    if(ZoneAttacker[i] != -1) GangZoneFlashForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneAttacker[i]));
	}



Re: [Help] Gang Zones won't show! - ivanVU - 21.06.2012

I am sorry for bumping, but i really need this, please help me..


Re: [Help] Gang Zones won't show! - Littlehelper - 22.06.2012

Where are you showing the gang zones? I mean the callback?


Re: [Help] Gang Zones won't show! - [MM]RoXoR[FS] - 22.06.2012

pawn Код:
GangZoneShowForPlayer(i, ZoneID[i], GetTeamZoneColor(ZoneInfo[i][zTeam]));
    if(ZoneAttacker[i] != -1) GangZoneFlashForPlayer(i, ZoneID[i], GetTeamZoneColor(ZoneAttacker[i]));
Try this .


Re: [Help] Gang Zones won't show! - ivanVU - 22.06.2012

It doesen't work :S

Edit: Under OnPlayerSpawn


Re: [Help] Gang Zones won't show! - ivanVU - 22.06.2012

I fix that, but now's the problem that it show's only first one, I don't know why it doesen't show others..

Код:
new ZoneInfo[][eZone] = {
    {-992.6194, 1903.494, -373.692, 2195.441,NICIJA}, // brana
    {233.5575, 677.3168, 992.6194, 1039.331,NICIJA}, // kamenolom
    {-2826.046, 2183.763, -2137.051, 2674.233,NICIJA}, // marina
    {-163.4902, 2370.609, 490.4708, 2639.2,NICIJA}, // stari aero
    {-105.1009, 1623.225, 432.0814, 2148.729,NICIJA}, // area51
    {-1669.936, 443.7593, -712.3504, 1424.701,NICIJA} // mostovi
};