Heey,
Kann mir einer helfen ich habe das raluno script und alles funkt,
nur die Gangzonen fehlen man kann es angreifen mit /angreifen aber die Zonen sieht man nicht
Code
Function SetGangZoneOwner(GangzoneId, FOwnerID)
{
if(GangzoneId == 255)
{
return 1;
}
GangZone[GangzoneId][gzOwner] = FOwnerID;
GangZoneHideForAll(GangZone[GangzoneId][gzID]);
GangZoneShowForAll(GangZone[GangzoneId][gzID],GetGangZoneColor(GangzoneId));
SaveGangZones();
return 1;
}
Function GetGangZoneColor(gzid)
{
if(GangZone[gzid][gzOwner] == 5)
{
return 0x6E6E6EFF;
}
else if(GangZone[gzid][gzOwner] == 6)
{
return 0x004300D1;
}
else if(GangZone[gzid][gzOwner] == 12)
{
return 0x00003EFF;
}
else if(GangZone[gzid][gzOwner] == 13)
{
return 0x00F800FF;
}
else if(GangZone[gzid][gzOwner] == 14)
{
return 0xB000B7FF;
}
else if(GangZone[gzid][gzOwner] == 15)
{
return 0x000000FF;
}
else if(GangZone[gzid][gzOwner] == 16)
{
return 0xF5FF00FF;
}
else if(GangZone[gzid][gzOwner] == 17)
{
return 0x00FFFAFF;
}
else if(GangZone[gzid][gzOwner] == 18)
{
return 0xFF9600FF;
}
else if(GangZone[gzid][gzOwner] == 19)
{
return 0xFF0000FF;
}
else if(GangZone[gzid][gzOwner] == 23)
{
return 0x4D0000FF;
}
return 0xFFFFFFFF;
}
Function GetPlayerGangZone(playerid)
{
new GangZoneID;
if(IsPlayerInArea(playerid,-2360.5784-25,-63.8015-25,-2266.4443+25,41.4670+25))//Gangzone 0
{
GangZoneID = 0;
}
else if(IsPlayerInArea(playerid,-2699.0300-25,47.1913-25,-2610.1543+25,149.3717+25))//Gangzone 1
{
GangZoneID = 1;
}
else if(IsPlayerInArea(playerid,-2243.7849-25,928.6682-25,-2157.0869+25,1086.2805+25))//Gangzone 2
{
GangZoneID = 2;
}
else if(IsPlayerInArea(playerid,-1579.2808-25,1016.1865-25,-1508.3629+25,1229.0961+25))//Gangzone 3
{
GangZoneID = 3;
}
else if(IsPlayerInArea(playerid,-387.1795-25,-1070.4860-25,-341.3897+25,-1032.0968+25))//Gangzone 4
{
GangZoneID = 4;
}
else if(IsPlayerInArea(playerid,609.4978-25,-525.3286-25,716.3276+25,-490.1229+25))//Gangzone 5
{
GangZoneID = 5;
}
else if(IsPlayerInArea(playerid,803.6276-25,-1387.7039-25,910.3912+25,-1333.4557+25))//Gangzone 6
{
GangZoneID = 6;
}
else if(IsPlayerInArea(playerid,2579.8970-25,-1249.8596-25,2634.1042+25,-1189.3790+25))//Gangzone 7
{
GangZoneID = 7;
}
else if(IsPlayerInArea(playerid,2183.9800-25,-2652.6365-25,2218.9609+25,-2496.9536+25))//Gangzone 8
{
GangZoneID = 8;
}
else if(IsPlayerInArea(playerid,148.0511-25,-1962.4158-25,165.0561+25,-1845.9280+25))//Gangzone 9
{
GangZoneID = 9;
}
else
{
GangZoneID = 255;
}
return GangZoneID;
}
Function CreateGangZones()
{
for(new i; i<sizeof(GangZone); i++)
{
GangZone[i][gzID] = GangZoneCreate(GangZone[i][x1],GangZone[i][y1],GangZone[i][x2],GangZone[i][y2]);
}
}
Function PlayerGangZonesShow(playerid, yesno)
{
if(yesno == 1)
{
for(new i; i < sizeof(GangZone); i++)
{
GangZoneShowForPlayer(playerid, GangZone[i][gzID], GetGangZoneColor(i));
}
}
else
{
for(new i; i < sizeof(GangZone); i++)
{
GangZoneHideForPlayer(playerid, GangZone[i][gzID]);
}
}
return 1;
}