Skripta : CLRP edit
Problem : e vako
Radio sam Gang Zone war po ovom tut
http://forum.sa-mp.com/showthread.php?t=276352
Al to je za samo jednu gang zonu , znaci samo jednu sto napravim , a ja ocu da ih ima vise
Pogledajte ...
Evo sve...
enum eZone
{
Float:zMinX,
Float:zMinY,
Float:zMaxX,
Float:zMaxY,
pMember,
}
new ZoneInfo[][eZone] = {
{2214.84375,-1905.46875,2407.03125,-1734.375,15},
{2214.84375,-1978.125,2303.90625,-1889.0625,15},
{2303.90625,-1975.78125,2409.375,-1891.40625,15},
{2402.34375,-1931.25,2519.53125,-1734.375,15},
{2205.46875,-1485.9375,2341.40625,-1392.1875,15},
{1033.203125,-1857.421875,1171.875,-1722.65625,6},
{1427.734375,-2109.375,1537.109375,-1878.90625,6},
{1298.828125,-1736.328125,1421.875,-1591.796875,6},
{853.515625,-2070.3125,1019.53125,-1798.828125,6},
{158.203125,-1898.4375,361.328125,-1748.046875,6}
}
new ZoneID[sizeof(ZoneInfo)];
new ZoneAttacker[sizeof(ZoneInfo)] = {-1, ...};
new ZoneAttackTime[sizeof(ZoneInfo)];
public OnPlayerSpawn(playerid)
{
for(new i=0; i < sizeof(ZoneInfo); i++)
{
GangZoneShowForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneInfo[i][pMember]));
if(ZoneAttacker[i] != -1) GangZoneFlashForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneAttacker[i]));
}
for(new i=0; i < sizeof(ZoneInfo); i++)
{
GangZoneShowForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneInfo[i][pMember]));
}
stock GetTeamZoneColor(teamid)
{
switch(teamid)
{
case 18: return 0x00FF4096;
case 6: return 0xFFFFFFAA;
}
return -1;
}
Refresh .........
Wow nezna nitko?! :/