[Help] Gang Zones won't show!
#1

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]));
	}
Reply
#2

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

Where are you showing the gang zones? I mean the callback?
Reply
#4

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

It doesen't work :S

Edit: Under OnPlayerSpawn
Reply
#6

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
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)