new HouseInfo[72][hInfo];
public LoadProperty()
{
new arrCoords[30][64];
new strFromFile2[256];
new File: file = fopen("property.cfg", io_read);
if (file)
{
new idx;
while (idx < sizeof(HouseInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
HouseInfo[idx][hEntrancex] = floatstr(arrCoords[0]);
HouseInfo[idx][hEntrancey] = floatstr(arrCoords[1]);
HouseInfo[idx][hEntrancez] = floatstr(arrCoords[2]);
HouseInfo[idx][hExitx] = floatstr(arrCoords[3]);
HouseInfo[idx][hExity] = floatstr(arrCoords[4]);
HouseInfo[idx][hExitz] = floatstr(arrCoords[5]);
HouseInfo[idx][hHealthx] = strval(arrCoords[6]);
HouseInfo[idx][hHealthy] = strval(arrCoords[7]);
HouseInfo[idx][hHealthz] = strval(arrCoords[8]);
HouseInfo[idx][hArmourx] = strval(arrCoords[9]);
HouseInfo[idx][hArmoury] = strval(arrCoords[10]);
HouseInfo[idx][hArmourz] = strval(arrCoords[11]);
//printf("HouseInfo hEntrancez %f",HouseInfo[idx][hEntrancez]);
strmid(HouseInfo[idx][hOwner], arrCoords[12], 0, strlen(arrCoords[12]), 255);
strmid(HouseInfo[idx][hDiscription], arrCoords[13], 0, strlen(arrCoords[13]), 255);
HouseInfo[idx][hValue] = strval(arrCoords[14]);
HouseInfo[idx][hHel] = strval(arrCoords[15]);
HouseInfo[idx][hArm] = strval(arrCoords[16]);
HouseInfo[idx][hInt] = strval(arrCoords[17]);
HouseInfo[idx][hLock] = strval(arrCoords[18]);
HouseInfo[idx][hOwned] = strval(arrCoords[19]);
HouseInfo[idx][hRooms] = strval(arrCoords[20]);
HouseInfo[idx][hRent] = strval(arrCoords[21]);
HouseInfo[idx][hRentabil] = strval(arrCoords[22]);
HouseInfo[idx][hTakings] = strval(arrCoords[23]);
HouseInfo[idx][hVec] = strval(arrCoords[24]);
if(HouseInfo[idx][hVec] == 457)
{
HouseInfo[idx][hVec] = 411;
}
HouseInfo[idx][hVcol1] = strval(arrCoords[25]);
HouseInfo[idx][hVcol2] = strval(arrCoords[26]);
HouseInfo[idx][hDate] = strval(arrCoords[27]);
HouseInfo[idx][hLevel] = strval(arrCoords[28]);
HouseInfo[idx][hWorld] = strval(arrCoords[29]);
HouseInfo[idx][hLevel] = strval(arrCoords[28]);
HouseInfo[idx][hWorld] = strval(arrCoords[29]);
//printf("HouseInfo:%d Owner:%s hTakings %d hVec %d",idx,HouseInfo[idx][hOwner],HouseInfo[idx][hTakings],HouseInfo[idx][hVec]);
print("Moradias Fixa : Carregada");
idx++;
}
fclose(file);
}
return 1;
}
// Gang Zonas
GZconstrucao = GangZoneCreate(2497.3013, 1962.9711, 2372.4241, 1823.5942); // Construзгo
//GZestadio = GangZoneCreate(1017.2111, 1382.9227, 1180.4696, 1804.3538); //Castelo
GZbarco = GangZoneCreate(1893.2604,1467.3412,2032.7643,1629.0620);// Navio
GZpraca = GangZoneCreate(1138.0619,2726.6240,1496.7953,2844.5059); // terminada
// Gangzones de Los Santos
GZfavela = GangZoneCreate(1226.1698, -1271.1938, 1333.0027, -1159.0004); // Construзгo
GZSkate = GangZoneCreate(1861.9410,-1450.6462,1976.5867,-1351.4069);
GZShop = GangZoneCreate(1061.1545,-1566.9081,1190.9424,-1411.1282);
GZAero = GangZoneCreate(1417.611, -2609.581, 1950.008, -2455.619);
// forte carson
GZforte1 = GangZoneCreate( 105.1009, 1331.278, 291.9469, 1483.90);// fabrica
GZforte2 = GangZoneCreate(-256.9133, 1027.653, -198.5239, 1074.365);// boca
// San fierro
GZfierro1 = GangZoneCreate(-2135.883, 124.611, -2004.552, 325.8042);// Construзгo
GZfierro2 = GangZoneCreate(-2410.133, 69.38152, -2259.489, 290.2995);// Parque alguma coisa
GZfierro3 = GangZoneCreate(-1703.262, 1375.165, -1571.931, 1501.404);//Pier 69
GZfierro4 = GangZoneCreate(-2862.067, 949.1086, -2734.599, 1280.486);//Parque 2
GZfierro5 = GangZoneCreate(-1672.361, 37.8218, -1498.54, 195.6204);//Docas
//red countri
GZred1 = GangZoneCreate(-595.5717, -210.2018, -408.7256, -23.35575);// madereira do pinokio
GZred2 = GangZoneCreate( 1541.479, 186.846, 1751.681, 397.0478);// Cruzamento Mulholland
GZred3 = GangZoneCreate( 2358.931, -677.3168, 2580.811, -420.4035);// North Rock
GZred4 = GangZoneCreate( 805.7734, -128.4566, 957.5858, 46.7115);// Fern Ridge
GZred5 = GangZoneCreate( 1996.917, -198.5239, 2183.763, -35.03363);// lagoa Fisher
// Deserto
GZdeserto1 = GangZoneCreate(-1121.076, 1097.72, -829.1292, 1377.989);// Cruzamento Robada
GZdeserto2 = GangZoneCreate(-794.0955, 1961.883, -607.2495, 2113.696);// Represa Sherman
GZdeserto3 = GangZoneCreate(-899.1964, 2253.83, -688.9946, 2464.032);// Arco del Oeste
GZdeserto4 = GangZoneCreate(-2253.83, 2569.133, -1961.883, 2697.589);// Tunel BaySide
GZdeserto5 = GangZoneCreate(-350.3363, 1810.071, -210.2018, 1915.172);//Regular Tom (Geyser)
O Sistema de Casas e do GF mesmo
quando o new HouseInfo[1][hInfo]; esta assim em 1 nao ocorre o bug nas gang zonas pawn Код:
Se precisar de mais do code e sґґo falar que eu posto |
new HouseInfo[72][hInfo];
Entrance_X,Entrance_Y,Entrance_Z,Exit_X,Exit_Y,Exit_Z,Health_X,Health_Y,Health_Z,Armour_X,Armour_Y,Armour_Z,Owner,Description,Price,Health,Armour,Interior,Locked,Owned,RentPrice,Takings,LevelNeeded......... //entre outros.
794.992309,1687.345336,5.281300,2261.300048,-1135.900024,1050.599975,0,0,0,0,0,0,Descriзгo,..., Alguem,2000000,0,0,10,1,0,3,500,1,9999,418,-1,-1,600,5
new HouseInfo[72][hInfo];
// Digamos que tinhamos 72 propriedades e +1 foi adicionada:
new HouseInfo[73][hInfo];
onplayerconnect
// Los Santos
GangZoneShowForPlayer(playerid, GZfavela, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZShop, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZSkate, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZAero, 0xC0C0C0AA);
// Las Venturas
GangZoneShowForPlayer(playerid, GZconstrucao, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZbarco, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZestadio, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZpraca, 0xC0C0C0AA);
// forte carson
GangZoneShowForPlayer(playerid, GZforte1, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZforte2, 0xC0C0C0AA);
// San Fierro
GangZoneShowForPlayer(playerid, GZfierro1, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZfierro2, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZfierro3, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZfierro4, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZfierro5, 0xC0C0C0AA);
// RedCounty
GangZoneShowForPlayer(playerid, GZred1, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZred2, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZred3, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZred4, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZred5, 0xC0C0C0AA);
//Deserto
GangZoneShowForPlayer(playerid, GZdeserto1, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZdeserto2, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZdeserto3, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZdeserto4, 0xC0C0C0AA);
GangZoneShowForPlayer(playerid, GZdeserto5, 0xC0C0C0AA);
if(donofavela == 0)
{
GangZoneShowForPlayer(playerid, GZfavela, 0xC0C0C0AA);
}
if(donofavela == 1)
{
GangZoneShowForPlayer(playerid, GZfavela, TEAM_GROVE_COLOR);
}
if(donofavela == 2)
{
GangZoneShowForPlayer(playerid, GZfavela, TEAM_BALLAS_COLOR);
}
if(donofavela == 3)
{
GangZoneShowForPlayer(playerid, GZfavela, TEAM_VAGOS_COLOR);
}
if(donofavela == 4)
{
GangZoneShowForPlayer(playerid, GZfavela, TEAM_AZTECAS_COLOR);
}
if(donofavela == 5)
{
GangZoneShowForPlayer(playerid, GZfavela, COR_POLICIA);
}
if(donofavela == 6)
{
GangZoneShowForPlayer(playerid, GZfavela, COR_POLICIA);
}
if(donofavela == 7)
{
GangZoneShowForPlayer(playerid, GZfavela, COR_MAIORAIS);
}
if(donoskate == 0)
{
GangZoneShowForPlayer(playerid, GZSkate, 0xC0C0C0AA);
}
if(donoskate == 1)
{
GangZoneShowForPlayer(playerid, GZSkate, TEAM_GROVE_COLOR);
}
if(donoskate == 2)
{
GangZoneShowForPlayer(playerid, GZSkate, TEAM_BALLAS_COLOR);
}
if(donoskate == 3)
{
GangZoneShowForPlayer(playerid, GZSkate, TEAM_VAGOS_COLOR);
}
if(donoskate == 4)
{
GangZoneShowForPlayer(playerid, GZSkate, TEAM_AZTECAS_COLOR);
}
if(donoskate == 5)
{
GangZoneShowForPlayer(playerid, GZSkate, COR_POLICIA);
}
if(donoskate == 6)
{
GangZoneShowForPlayer(playerid, GZSkate, COR_POLICIA);
}
if(donoskate == 7)
{
GangZoneShowForPlayer(playerid, GZSkate, COR_MAIORAIS);
}
if(donoshop == 0)
{
GangZoneShowForPlayer(playerid, GZShop, 0xC0C0C0AA);
}
if(donoshop == 1)
{
GangZoneShowForPlayer(playerid, GZShop, TEAM_GROVE_COLOR);
}
if(donoshop == 2)
{
GangZoneShowForPlayer(playerid, GZShop, TEAM_BALLAS_COLOR);
}
if(donoshop == 3)
{
GangZoneShowForPlayer(playerid, GZShop, TEAM_VAGOS_COLOR);
}
if(donoshop == 4)
{
GangZoneShowForPlayer(playerid, GZShop, TEAM_AZTECAS_COLOR);
}
if(donoshop == 5)
{
GangZoneShowForPlayer(playerid, GZShop, COR_POLICIA);
}
if(donoshop == 6)
{
GangZoneShowForPlayer(playerid, GZShop, COR_POLICIA);
}
if(donoshop == 7)
{
GangZoneShowForPlayer(playerid, GZShop, COR_MAIORAIS);
}
if(donoaero == 0)
{
GangZoneShowForPlayer(playerid, GZAero, 0xC0C0C0AA);
}
if(donoaero == 1)
{
GangZoneShowForPlayer(playerid, GZAero, TEAM_GROVE_COLOR);
}
if(donoaero == 2)
{
GangZoneShowForPlayer(playerid, GZAero, TEAM_BALLAS_COLOR);
}
if(donoaero == 3)
{
GangZoneShowForPlayer(playerid, GZAero, TEAM_VAGOS_COLOR);
}
if(donoaero == 4)
{
GangZoneShowForPlayer(playerid, GZAero, TEAM_AZTECAS_COLOR);
}
if(donoaero == 5)
{
GangZoneShowForPlayer(playerid, GZAero, COR_POLICIA);
}
if(donoaero == 6)
{
GangZoneShowForPlayer(playerid, GZAero, COR_POLICIA);
}
if(donoaero == 7)
{
GangZoneShowForPlayer(playerid, GZAero, COR_MAIORAIS);
}
// Las Venturas
if(donoconstrucao == 0)
{
GangZoneShowForPlayer(playerid, GZconstrucao, 0xC0C0C0AA);
}
if(donoconstrucao == 1)
{
GangZoneShowForPlayer(playerid, GZconstrucao, COR_STRACCI);
}
if(donoconstrucao == 2)
{
GangZoneShowForPlayer(playerid, GZconstrucao, COR_BARZINI);
}
if(donoconstrucao == 3)
{
GangZoneShowForPlayer(playerid, GZconstrucao, COR_TATTAGLIAS);
}
if(donoconstrucao == 4)
{
GangZoneShowForPlayer(playerid, GZconstrucao, COR_CUNEO);
}
if(donoconstrucao == 5)
{
GangZoneShowForPlayer(playerid, GZconstrucao, COR_POLICIA);
}
if(donoconstrucao == 6)
{
GangZoneShowForPlayer(playerid, GZconstrucao, COR_POLICIA);
}
if(donoconstrucao == 7)
{
GangZoneShowForPlayer(playerid, GZconstrucao, COR_CORLEONE);
}
if(donoestadio == 0)
{
GangZoneShowForPlayer(playerid, GZestadio, 0xC0C0C0AA);
}
if(donoestadio == 1)
{
GangZoneShowForPlayer(playerid, GZestadio, COR_STRACCI);
}
if(donoestadio == 2)
{
GangZoneShowForPlayer(playerid, GZestadio, COR_BARZINI);
}
if(donoestadio == 3)
{
GangZoneShowForPlayer(playerid, GZestadio, COR_TATTAGLIAS);
}
if(donoestadio == 4)
{
GangZoneShowForPlayer(playerid, GZestadio, COR_CUNEO);
}
if(donoestadio == 5)
{
GangZoneShowForPlayer(playerid, GZestadio, COR_POLICIA);
}
if(donoestadio == 6)
{
GangZoneShowForPlayer(playerid, GZestadio, COR_POLICIA);
}
if(donoestadio == 7)
{
GangZoneShowForPlayer(playerid, GZestadio, COR_CORLEONE);
}
if(donobarco == 0)
{
GangZoneShowForPlayer(playerid, GZbarco, 0xC0C0C0AA);
}
if(donobarco == 1)
{
GangZoneShowForPlayer(playerid, GZbarco, COR_STRACCI);
}
if(donobarco == 2)
{
GangZoneShowForPlayer(playerid, GZbarco, COR_BARZINI);
}
if(donobarco == 3)
{
GangZoneShowForPlayer(playerid, GZbarco, COR_TATTAGLIAS);
}
if(donobarco == 4)
{
GangZoneShowForPlayer(playerid, GZbarco, COR_CUNEO);
}
if(donobarco == 5)
{
GangZoneShowForPlayer(playerid, GZbarco, COR_POLICIA);
}
if(donobarco == 6)
{
GangZoneShowForPlayer(playerid, GZbarco, COR_POLICIA);
}
if(donobarco == 7)
{
GangZoneShowForPlayer(playerid, GZbarco, COR_CORLEONE);
}
if(donopraca == 0)
{
GangZoneShowForPlayer(playerid, GZpraca, 0xC0C0C0AA);
}
if(donopraca == 1)
{
GangZoneShowForPlayer(playerid, GZpraca, COR_STRACCI);
}
if(donopraca == 2)
{
GangZoneShowForPlayer(playerid, GZpraca, COR_BARZINI);
}
if(donopraca == 3)
{
GangZoneShowForPlayer(playerid, GZpraca, COR_TATTAGLIAS);
}
if(donopraca == 4)
{
GangZoneShowForPlayer(playerid, GZpraca, COR_CUNEO);
}
if(donopraca == 5)
{
GangZoneShowForPlayer(playerid, GZpraca, COR_POLICIA);
}
if(donopraca == 6)
{
GangZoneShowForPlayer(playerid, GZpraca, COR_POLICIA);
}
if(donopraca == 7)
{
GangZoneShowForPlayer(playerid, GZpraca, COR_CORLEONE);
}
// forte carson
if(donoforte1 == 0)
{
GangZoneShowForPlayer(playerid, GZforte1, 0xC0C0C0AA);
}
if(donoforte1 == 1)
{
GangZoneShowForPlayer(playerid, GZforte1, COR_POLICIA);
}
if(donoforte1 == 2)
{
GangZoneShowForPlayer(playerid, GZforte1, COR_VIBORA);
}
if(donoforte1 == 3)
{
GangZoneShowForPlayer(playerid, GZforte1, COR_COWBOY);
}
if(donoforte2 == 0)
{
GangZoneShowForPlayer(playerid, GZforte2, 0xC0C0C0AA);
}
if(donoforte2 == 1)
{
GangZoneShowForPlayer(playerid, GZforte2, COR_POLICIA);
}
if(donoforte2 == 2)
{
GangZoneShowForPlayer(playerid, GZforte2, COR_VIBORA);
}
if(donoforte2 == 3)
{
GangZoneShowForPlayer(playerid, GZforte2, COR_COWBOY);
}
//san fierro
if(donofierro1 == 0)
{
GangZoneShowForPlayer(playerid, GZfierro1, 0xC0C0C0AA);
}
if(donofierro1 == 1)
{
GangZoneShowForPlayer(playerid, GZfierro1, COR_POLICIA);
}
if(donofierro1 == 2)
{
GangZoneShowForPlayer(playerid, GZfierro1, COR_PCC);
}
if(donofierro1 == 3)
{
GangZoneShowForPlayer(playerid, GZfierro1, COR_CV);
}
if(donofierro1 == 4)
{
GangZoneShowForPlayer(playerid, GZfierro1, COR_STRONDA);
}
if(donofierro1 == 5)
{
GangZoneShowForPlayer(playerid, GZfierro1, COR_POLICIA);
}
if(donofierro2 == 0)
{
GangZoneShowForPlayer(playerid, GZfierro2, 0xC0C0C0AA);
}
if(donofierro2 == 1)
{
GangZoneShowForPlayer(playerid, GZfierro2, COR_POLICIA);
}
if(donofierro2 == 2)
{
GangZoneShowForPlayer(playerid, GZfierro2, COR_PCC);
}
if(donofierro2 == 3)
{
GangZoneShowForPlayer(playerid, GZfierro2, COR_CV);
}
if(donofierro2 == 4)
{
GangZoneShowForPlayer(playerid, GZfierro2, COR_STRONDA);
}
if(donofierro2 == 5)
{
GangZoneShowForPlayer(playerid, GZfierro2, COR_POLICIA);
}
if(donofierro3 == 0)
{
GangZoneShowForPlayer(playerid, GZfierro3, 0xC0C0C0AA);
}
if(donofierro3 == 1)
{
GangZoneShowForPlayer(playerid, GZfierro3, COR_POLICIA);
}
if(donofierro3 == 2)
{
GangZoneShowForPlayer(playerid, GZfierro3, COR_PCC);
}
if(donofierro3 == 3)
{
GangZoneShowForPlayer(playerid, GZfierro3, COR_CV);
}
if(donofierro3 == 4)
{
GangZoneShowForPlayer(playerid, GZfierro3, COR_STRONDA);
}
if(donofierro3 == 5)
{
GangZoneShowForPlayer(playerid, GZfierro3, COR_POLICIA);
}
if(donofierro4 == 0)
{
GangZoneShowForPlayer(playerid, GZfierro4, 0xC0C0C0AA);
}
if(donofierro4 == 1)
{
GangZoneShowForPlayer(playerid, GZfierro4, COR_POLICIA);
}
if(donofierro4 == 2)
{
GangZoneShowForPlayer(playerid, GZfierro4, COR_PCC);
}
if(donofierro4 == 3)
{
GangZoneShowForPlayer(playerid, GZfierro4, COR_CV);
}
if(donofierro4 == 4)
{
GangZoneShowForPlayer(playerid, GZfierro4, COR_STRONDA);
}
if(donofierro4 == 5)
{
GangZoneShowForPlayer(playerid, GZfierro4, COR_POLICIA);
}
if(donofierro5 == 0)
{
GangZoneShowForPlayer(playerid, GZfierro5, 0xC0C0C0AA);
}
if(donofierro5 == 1)
{
GangZoneShowForPlayer(playerid, GZfierro5, COR_POLICIA);
}
if(donofierro5 == 2)
{
GangZoneShowForPlayer(playerid, GZfierro5, COR_PCC);
}
if(donofierro5 == 3)
{
GangZoneShowForPlayer(playerid, GZfierro5, COR_CV);
}
if(donofierro5 == 4)
{
GangZoneShowForPlayer(playerid, GZfierro5, COR_STRONDA);
}
if(donofierro5 == 5)
{
GangZoneShowForPlayer(playerid, GZfierro5, COR_POLICIA);
}
//red countri
if(donored1 == 0)
{
GangZoneShowForPlayer(playerid, GZred1, 0xC0C0C0AA);
}
if(donored1 == 1)
{
GangZoneShowForPlayer(playerid, GZred1, COR_POLICIA);
}
if(donored1 == 2)
{
GangZoneShowForPlayer(playerid, GZred1, COR_MS13);
}
if(donored1 == 3)
{
GangZoneShowForPlayer(playerid, GZred1, COR_BLOODZ);
}
if(donored1 == 4)
{
GangZoneShowForPlayer(playerid, GZred1, COR_CRIPZ);
}
if(donored2 == 0)
{
GangZoneShowForPlayer(playerid, GZred2, 0xC0C0C0AA);
}
if(donored2 == 1)
{
GangZoneShowForPlayer(playerid, GZred2, COR_POLICIA);
}
if(donored2 == 2)
{
GangZoneShowForPlayer(playerid, GZred2, COR_MS13);
}
if(donored2 == 3)
{
GangZoneShowForPlayer(playerid, GZred2, COR_BLOODZ);
}
if(donored2 == 4)
{
GangZoneShowForPlayer(playerid, GZred2, COR_CRIPZ);
}
if(donored3 == 0)
{
GangZoneShowForPlayer(playerid, GZred3, 0xC0C0C0AA);
}
if(donored3 == 1)
{
GangZoneShowForPlayer(playerid, GZred3, COR_POLICIA);
}
if(donored3 == 2)
{
GangZoneShowForPlayer(playerid, GZred3, COR_MS13);
}
if(donored3 == 3)
{
GangZoneShowForPlayer(playerid, GZred3, COR_BLOODZ);
}
if(donored3 == 4)
{
GangZoneShowForPlayer(playerid, GZred3, COR_CRIPZ);
}
if(donored4 == 0)
{
GangZoneShowForPlayer(playerid, GZred4, 0xC0C0C0AA);
}
if(donored4 == 1)
{
GangZoneShowForPlayer(playerid, GZred4, COR_POLICIA);
}
if(donored4 == 2)
{
GangZoneShowForPlayer(playerid, GZred4, COR_MS13);
}
if(donored4 == 3)
{
GangZoneShowForPlayer(playerid, GZred4, COR_BLOODZ);
}
if(donored4 == 4)
{
GangZoneShowForPlayer(playerid, GZred4, COR_CRIPZ);
}
if(donored5 == 0)
{
GangZoneShowForPlayer(playerid, GZred5, 0xC0C0C0AA);
}
if(donored5 == 1)
{
GangZoneShowForPlayer(playerid, GZred5, COR_POLICIA);
}
if(donored5 == 2)
{
GangZoneShowForPlayer(playerid, GZred5, COR_MS13);
}
if(donored5 == 3)
{
GangZoneShowForPlayer(playerid, GZred5, COR_BLOODZ);
}
if(donored5 == 4)
{
GangZoneShowForPlayer(playerid, GZred5, COR_CRIPZ);
}
//deserto
if(donodeserto1 == 0)
{
GangZoneShowForPlayer(playerid, GZdeserto1, 0xC0C0C0AA);
}
if(donodeserto1 == 1)
{
GangZoneShowForPlayer(playerid, GZdeserto1, COR_POLICIA);
}
if(donodeserto1 == 2)
{
GangZoneShowForPlayer(playerid, GZdeserto1, COR_CALLE);
}
if(donodeserto1 == 3)
{
GangZoneShowForPlayer(playerid, GZdeserto1, COR_SUL);
}
if(donodeserto1 == 4)
{
GangZoneShowForPlayer(playerid, GZdeserto1, COR_NORT);
}
if(donodeserto2 == 0)
{
GangZoneShowForPlayer(playerid, GZdeserto2, 0xC0C0C0AA);
}
if(donodeserto2 == 1)
{
GangZoneShowForPlayer(playerid, GZdeserto2, COR_POLICIA);
}
if(donodeserto2 == 2)
{
GangZoneShowForPlayer(playerid, GZdeserto2, COR_CALLE);
}
if(donodeserto2 == 3)
{
GangZoneShowForPlayer(playerid, GZdeserto2, COR_SUL);
}
if(donodeserto2 == 4)
{
GangZoneShowForPlayer(playerid, GZdeserto2, COR_NORT);
}
if(donodeserto3 == 0)
{
GangZoneShowForPlayer(playerid, GZdeserto3, 0xC0C0C0AA);
}
if(donodeserto3 == 1)
{
GangZoneShowForPlayer(playerid, GZdeserto3, COR_POLICIA);
}
if(donodeserto3 == 2)
{
GangZoneShowForPlayer(playerid, GZdeserto3, COR_CALLE);
}
if(donodeserto3 == 3)
{
GangZoneShowForPlayer(playerid, GZdeserto3, COR_SUL);
}
if(donodeserto3 == 4)
{
GangZoneShowForPlayer(playerid, GZdeserto3, COR_NORT);
}
if(donodeserto4 == 0)
{
GangZoneShowForPlayer(playerid, GZdeserto4, 0xC0C0C0AA);
}
if(donodeserto4 == 1)
{
GangZoneShowForPlayer(playerid, GZdeserto4, COR_POLICIA);
}
if(donodeserto4 == 2)
{
GangZoneShowForPlayer(playerid, GZdeserto4, COR_CALLE);
}
if(donodeserto4 == 3)
{
GangZoneShowForPlayer(playerid, GZdeserto4, COR_SUL);
}
if(donodeserto4 == 4)
{
GangZoneShowForPlayer(playerid, GZdeserto4, COR_NORT);
}
if(donodeserto5 == 0)
{
GangZoneShowForPlayer(playerid, GZdeserto5, 0xC0C0C0AA);
}
if(donodeserto5 == 1)
{
GangZoneShowForPlayer(playerid, GZdeserto5, COR_POLICIA);
}
if(donodeserto5 == 2)
{
GangZoneShowForPlayer(playerid, GZdeserto5, COR_CALLE);
}
if(donodeserto5 == 3)
{
GangZoneShowForPlayer(playerid, GZdeserto5, COR_SUL);
}
if(donodeserto5 == 4)
{
GangZoneShowForPlayer(playerid, GZdeserto5, COR_NORT);
}
// onplayerdeath
if(Provocofavela[playerid] == 1)
{
GangZoneStopFlashForAll(GZfavela);
GangZoneShowForAll(GZfavela, 0xFFFFFF96);
Guerranofavela = 0;
Provocofavela[playerid] = 0;
donofavela = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrafavela);
}
if(ProvocoSkate[playerid] == 1)
{
GangZoneStopFlashForAll(GZSkate);
GangZoneShowForAll(GZSkate, 0xFFFFFF96);
GuerranoSkate = 0;
ProvocoSkate[playerid] = 0;
donoskate = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraSkate);
}
if(ProvocoShop[playerid] == 1)
{
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop, 0xFFFFFF96);
GuerranoShop = 0;
ProvocoShop[playerid] = 0;
donoshop = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraShop);
}
if(ProvocoAero[playerid] == 1)
{
GangZoneStopFlashForAll(GZAero);
GangZoneShowForAll(GZAero, 0xFFFFFF96);
GuerranoAero = 0;
ProvocoAero[playerid] = 0;
donoaero = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraAero);
}// Daqui pr abaixo e las venturas
if(Provococonstrucao[playerid] == 1)
{
GangZoneStopFlashForAll(GZconstrucao);
GangZoneShowForAll(GZconstrucao, 0xFFFFFF96);
Guerranoconstrucao = 0;
Provococonstrucao[playerid] = 0;
donoconstrucao = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraconstrucao);
}
if(Provocoestadio[playerid] == 1)
{
GangZoneStopFlashForAll(GZestadio);
GangZoneShowForAll(GZestadio, 0xFFFFFF96);
Guerranoestadio = 0;
Provocoestadio[playerid] = 0;
donoestadio = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraestadio);
}
if(Provocobarco[playerid] == 1)
{
GangZoneStopFlashForAll(GZbarco);
GangZoneShowForAll(GZbarco, 0xFFFFFF96);
Guerranobarco = 0;
Provocobarco[playerid] = 0;
donobarco = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrabarco);
}
if(Provocopraca[playerid] == 1)
{
GangZoneStopFlashForAll(GZpraca);
GangZoneShowForAll(GZpraca, 0xFFFFFF96);
Guerranopraca = 0;
Provocopraca[playerid] = 0;
donopraca = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrapraca);
}
// forte carson
if(Provocoforte1[playerid] == 1)
{
GangZoneStopFlashForAll(GZforte1);
GangZoneShowForAll(GZforte1, 0xFFFFFF96);
Guerranoforte1 = 0;
Provocoforte1[playerid] = 0;
donoforte1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraforte1);
}
if(Provocoforte2[playerid] == 1)
{
GangZoneStopFlashForAll(GZforte2);
GangZoneShowForAll(GZforte2, 0xFFFFFF96);
Guerranoforte2 = 0;
Provocoforte2[playerid] = 0;
donoforte2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraforte2);
}
// san fierro
if(Provocofierro1[playerid] == 1)
{
GangZoneStopFlashForAll(GZfierro1);
GangZoneShowForAll(GZfierro1, 0xFFFFFF96);
Guerranofierro1 = 0;
Provocofierro1[playerid] = 0;
donofierro1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrafierro1);
}
if(Provocofierro2[playerid] == 1)
{
GangZoneStopFlashForAll(GZfierro2);
GangZoneShowForAll(GZfierro2, 0xFFFFFF96);
Guerranofierro2 = 0;
Provocofierro2[playerid] = 0;
donofierro2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrafierro2);
}
if(Provocofierro3[playerid] == 1)
{
GangZoneStopFlashForAll(GZfierro3);
GangZoneShowForAll(GZfierro3, 0xFFFFFF96);
Guerranofierro2 = 0;
Provocofierro2[playerid] = 0;
donofierro2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrafierro3);
}
if(Provocofierro4[playerid] == 1)
{
GangZoneStopFlashForAll(GZfierro4);
GangZoneShowForAll(GZfierro4, 0xFFFFFF96);
Guerranofierro2 = 0;
Provocofierro2[playerid] = 0;
donofierro2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrafierro4);
}
if(Provocofierro5[playerid] == 1)
{
GangZoneStopFlashForAll(GZfierro5);
GangZoneShowForAll(GZfierro5, 0xFFFFFF96);
Guerranofierro2 = 0;
Provocofierro2[playerid] = 0;
donofierro2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrafierro5);
}
// red countri
if(Provocored1[playerid] == 1)
{
GangZoneStopFlashForAll(GZred1);
GangZoneShowForAll(GZred1, 0xFFFFFF96);
Guerranored1 = 0;
Provocored1[playerid] = 0;
donored1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrared1);
}
if(Provocored2[playerid] == 1)
{
GangZoneStopFlashForAll(GZred2);
GangZoneShowForAll(GZred2, 0xFFFFFF96);
Guerranored2 = 0;
Provocored2[playerid] = 0;
donored2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrared2);
}
if(Provocored3[playerid] == 1)
{
GangZoneStopFlashForAll(GZred3);
GangZoneShowForAll(GZred3, 0xFFFFFF96);
Guerranored2 = 0;
Provocored2[playerid] = 0;
donored2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrared3);
}
if(Provocored4[playerid] == 1)
{
GangZoneStopFlashForAll(GZred4);
GangZoneShowForAll(GZred4, 0xFFFFFF96);
Guerranored2 = 0;
Provocored2[playerid] = 0;
donored2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrared4);
}
if(Provocored5[playerid] == 1)
{
GangZoneStopFlashForAll(GZred5);
GangZoneShowForAll(GZred5, 0xFFFFFF96);
Guerranored2 = 0;
Provocored2[playerid] = 0;
donored2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrared5);
}
//Deserto
if(Provocodeserto1[playerid] == 1)
{
GangZoneStopFlashForAll(GZdeserto1);
GangZoneShowForAll(GZdeserto1, 0xFFFFFF96);
Guerranodeserto1 = 0;
Provocodeserto1[playerid] = 0;
donodeserto1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerradeserto1);
}
if(Provocodeserto2[playerid] == 1)
{
GangZoneStopFlashForAll(GZdeserto2);
GangZoneShowForAll(GZdeserto2, 0xFFFFFF96);
Guerranodeserto2 = 0;
Provocodeserto2[playerid] = 0;
donodeserto2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerradeserto2);
}
if(Provocodeserto3[playerid] == 1)
{
GangZoneStopFlashForAll(GZdeserto3);
GangZoneShowForAll(GZdeserto3, 0xFFFFFF96);
Guerranodeserto2 = 0;
Provocodeserto2[playerid] = 0;
donodeserto2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerradeserto3);
}
if(Provocodeserto4[playerid] == 1)
{
GangZoneStopFlashForAll(GZdeserto4);
GangZoneShowForAll(GZdeserto4, 0xFFFFFF96);
Guerranodeserto2 = 0;
Provocodeserto2[playerid] = 0;
donodeserto2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerradeserto4);
}
if(Provocodeserto5[playerid] == 1)
{
GangZoneStopFlashForAll(GZdeserto5);
GangZoneShowForAll(GZdeserto5, 0xFFFFFF96);
Guerranodeserto2 = 0;
Provocodeserto2[playerid] = 0;
donodeserto2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerradeserto5);
}
// OnPlayerDisconnect
if(Provocofavela[playerid] == 1)
{
GangZoneStopFlashForAll(GZfavela);
GangZoneShowForAll(GZfavela, 0xFFFFFF96);
Guerranofavela = 0;
Provocofavela[playerid] = 0;
donofavela = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrafavela);
}
if(ProvocoSkate[playerid] == 1)
{
GangZoneStopFlashForAll(GZSkate);
GangZoneShowForAll(GZSkate, 0xFFFFFF96);
GuerranoSkate = 0;
ProvocoSkate[playerid] = 0;
donoskate = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraSkate);
}
if(ProvocoShop[playerid] == 1)
{
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop, 0xFFFFFF96);
GuerranoShop = 0;
ProvocoShop[playerid] = 0;
donoshop = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraShop);
}
if(ProvocoAero[playerid] == 1)
{
GangZoneStopFlashForAll(GZAero);
GangZoneShowForAll(GZAero, 0xFFFFFF96);
GuerranoAero = 0;
ProvocoAero[playerid] = 0;
donoaero = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraAero);
} // Las Venturas
if(Provococonstrucao[playerid] == 1)
{
GangZoneStopFlashForAll(GZconstrucao);
GangZoneShowForAll(GZconstrucao, 0xFFFFFF96);
Guerranoconstrucao = 0;
Provococonstrucao[playerid] = 0;
donoconstrucao = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraconstrucao);
}
if(Provocoestadio[playerid] == 1)
{
GangZoneStopFlashForAll(GZestadio);
GangZoneShowForAll(GZestadio, 0xFFFFFF96);
Guerranoestadio = 0;
Provocoestadio[playerid] = 0;
donoestadio = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraestadio);
}
if(Provocobarco[playerid] == 1)
{
GangZoneStopFlashForAll(GZbarco);
GangZoneShowForAll(GZbarco, 0xFFFFFF96);
Guerranobarco = 0;
Provocobarco[playerid] = 0;
donobarco = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrabarco);
}
if(Provocopraca[playerid] == 1)
{
GangZoneStopFlashForAll(GZpraca);
GangZoneShowForAll(GZpraca, 0xFFFFFF96);
Guerranopraca = 0;
Provocopraca[playerid] = 0;
donopraca = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrapraca);
}
//forte carson
if(Provocoforte1[playerid] == 1)
{
GangZoneStopFlashForAll(GZforte1);
GangZoneShowForAll(GZforte1, 0xFFFFFF96);
Guerranoforte1 = 0;
Provocoforte1[playerid] = 0;
donoforte1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraforte1);
}
if(Provocoforte2[playerid] == 1)
{
GangZoneStopFlashForAll(GZforte2);
GangZoneShowForAll(GZforte2, 0xFFFFFF96);
Guerranoforte2 = 0;
Provocoforte2[playerid] = 0;
donoforte2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraforte2);
}
//san fierro
if(Provocofierro1[playerid] == 1)
{
GangZoneStopFlashForAll(GZfierro1);
GangZoneShowForAll(GZfierro1, 0xFFFFFF96);
Guerranofierro1 = 0;
Provocofierro1[playerid] = 0;
donofierro1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrafierro1);
}
if(Provocofierro2[playerid] == 1)
{
GangZoneStopFlashForAll(GZfierro2);
GangZoneShowForAll(GZfierro2, 0xFFFFFF96);
Guerranofierro2 = 0;
Provocofierro2[playerid] = 0;
donofierro2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrafierro2);
}
if(Provocofierro3[playerid] == 1)
{
GangZoneStopFlashForAll(GZfierro3);
GangZoneShowForAll(GZfierro3, 0xFFFFFF96);
Guerranofierro2 = 0;
Provocofierro2[playerid] = 0;
donofierro2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrafierro3);
}
if(Provocofierro4[playerid] == 1)
{
GangZoneStopFlashForAll(GZfierro4);
GangZoneShowForAll(GZfierro4, 0xFFFFFF96);
Guerranofierro2 = 0;
Provocofierro2[playerid] = 0;
donofierro2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrafierro4);
}
if(Provocofierro5[playerid] == 1)
{
GangZoneStopFlashForAll(GZfierro5);
GangZoneShowForAll(GZfierro5, 0xFFFFFF96);
Guerranofierro2 = 0;
Provocofierro2[playerid] = 0;
donofierro2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrafierro5);
}
//red countri
if(Provocored1[playerid] == 1)
{
GangZoneStopFlashForAll(GZred1);
GangZoneShowForAll(GZred1, 0xFFFFFF96);
Guerranored1 = 0;
Provocored1[playerid] = 0;
donored1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrared1);
}
if(Provocored2[playerid] == 1)
{
GangZoneStopFlashForAll(GZred2);
GangZoneShowForAll(GZred2, 0xFFFFFF96);
Guerranored2 = 0;
Provocored2[playerid] = 0;
donored2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrared2);
}
if(Provocored3[playerid] == 1)
{
GangZoneStopFlashForAll(GZred3);
GangZoneShowForAll(GZred3, 0xFFFFFF96);
Guerranored2 = 0;
Provocored2[playerid] = 0;
donored2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrared3);
}
if(Provocored4[playerid] == 1)
{
GangZoneStopFlashForAll(GZred4);
GangZoneShowForAll(GZred4, 0xFFFFFF96);
Guerranored2 = 0;
Provocored2[playerid] = 0;
donored2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrared4);
}
if(Provocored5[playerid] == 1)
{
GangZoneStopFlashForAll(GZred5);
GangZoneShowForAll(GZred5, 0xFFFFFF96);
Guerranored2 = 0;
Provocored2[playerid] = 0;
donored2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerrared5);
}
//Deserto
if(Provocodeserto1[playerid] == 1)
{
GangZoneStopFlashForAll(GZdeserto1);
GangZoneShowForAll(GZdeserto1, 0xFFFFFF96);
Guerranodeserto1 = 0;
Provocodeserto1[playerid] = 0;
donodeserto1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerradeserto1);
}
if(Provocodeserto2[playerid] == 1)
{
GangZoneStopFlashForAll(GZdeserto2);
GangZoneShowForAll(GZdeserto2, 0xFFFFFF96);
Guerranodeserto2 = 0;
Provocodeserto2[playerid] = 0;
donodeserto2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerradeserto2);
}
if(Provocodeserto3[playerid] == 1)
{
GangZoneStopFlashForAll(GZdeserto3);
GangZoneShowForAll(GZdeserto3, 0xFFFFFF96);
Guerranodeserto2 = 0;
Provocodeserto2[playerid] = 0;
donodeserto2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerradeserto3);
}
if(Provocodeserto4[playerid] == 1)
{
GangZoneStopFlashForAll(GZdeserto4);
GangZoneShowForAll(GZdeserto4, 0xFFFFFF96);
Guerranodeserto2 = 0;
Provocodeserto2[playerid] = 0;
donodeserto2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerradeserto4);
}
if(Provocodeserto5[playerid] == 1)
{
GangZoneStopFlashForAll(GZdeserto5);
GangZoneShowForAll(GZdeserto5, 0xFFFFFF96);
Guerranodeserto2 = 0;
Provocodeserto2[playerid] = 0;
donodeserto2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerradeserto5);
}