21.06.2012, 11:16
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
The creation of zones
The showing
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 };
Код:
foreach(Player,i) { ZoneID[i] = GangZoneCreate(ZoneInfo[i][zMinX], ZoneInfo[i][zMinY], ZoneInfo[i][zMaxX], ZoneInfo[i][zMaxY]); }
Код:
foreach(Player,i) { GangZoneShowForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneInfo[i][zTeam])); if(ZoneAttacker[i] != -1) GangZoneFlashForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneAttacker[i])); }