Sanya_Banderos
Новичок
Когда садишься в кар медиков пишет "Вы не состоите в ДПС",проверил код вроде все в порядке,может что то упустил,помогите
Вот коды:
Массивы:
Медики:
Кто поможет +ану
Вот коды:
Код:
new sapdcar[34], fbicar[12],cnncar[5],sfpdcar[29],medmav,mavlic,cnnmav,armycar[19], armycarv[4], yakcar[7],ruscar[12],govcar[4], lcncar[12],ambucar[15], armcar[46], faggio[6], matscar[NUMBER_OF_ARMYTRUCKS], grovecar[7], ballascar[7], coronoscar[7], vagoscar[5],rifacar[5];
Код:
if(newcar == ambucar[0] && newcar >= ambucar[14])
{
if(PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 4) { }
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Вы не медик San Fierro!");
RemovePlayerFromVehicleRich(playerid);
}
}
Код:
if(newcar >= sfpdcar[0] && newcar <= sfpdcar[28])
{
if(PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10) { }
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Âû íå ñîñòîèòå â ÄÏÑ!");
RemovePlayerFromVehicleRich(playerid);
}
}
Код:
sfpdcar[5] = AddStaticVehicleEx(597,-1608.5095,748.6892,-5.4740,180.7957,1,103,900); //4-o aaa?ea
sfpdcar[6] = AddStaticVehicleEx(597,-1604.3743,748.7833,-5.4732,180.8979,1,103,900); //4-o aaa?ea
sfpdcar[7] = AddStaticVehicleEx(597,-1600.1812,748.8475,-5.4732,180.6038,1,103,900); //4-o aaa?ea
sfpdcar[9] = AddStaticVehicleEx(597,-1579.5892,749.2114,-5.4732,180.1104,1,103,900); //4-o aaa?ea
sfpdcar[10] = AddStaticVehicleEx(597,-1591.9786,748.9724,-5.4733,180.5795,1,103,900); //4-o aaa?ea
sfpdcar[11] = AddStaticVehicleEx(597,-1583.8110,749.2034,-5.4739,179.4646,1,103,900); //4-o aaa?ea
sfpdcar[12] = AddStaticVehicleEx(597,-1596.0133,748.9694,-5.4740,179.9943,1,103,900); //4-o aaa?ea
sfpdcar[13] = AddStaticVehicleEx(597,-1587.7101,749.0371,-5.4737,180.2399,1,103,900); //4-o aaa?ea
sfpdcar[14] = AddStaticVehicleEx(597,-1574.1715,738.8038,-5.4727,90.8081,1,103,900); //4-o aaa?ea
sfpdcar[15] = AddStaticVehicleEx(597,-1574.2087,714.2832,-5.4741,90.8081,1,103,900); //4-o aaa?ea
sfpdcar[16] = AddStaticVehicleEx(597,-1574.2324,718.6381,-5.4733,90.8081,1,103,900); //4-o aaa?ea
sfpdcar[17] = AddStaticVehicleEx(597,-1573.9800,734.5951,-5.4732,90.8081,1,103,900); //4-o aaa?ea
sfpdcar[18] = AddStaticVehicleEx(597,-1573.7732,730.6323,-5.4739,90.8081,1,103,900); //4-o aaa?ea
sfpdcar[19] = AddStaticVehicleEx(497,-1680.9225,705.6724,30.7915,95.5060,1,103,900); //hell
sfpdcar[20] = AddStaticVehicle(523,-1600.0845,695.2717,-5.6700,180.5546,3,3); // ìîòî
sfpdcar[21] = AddStaticVehicle(523,-1603.5908,695.2377,-5.6700,180.5546,3,3); // ìîòî
sfpdcar[22] = AddStaticVehicle(523,-1608.4457,695.1907,-5.6700,180.5546,3,3); // ìîòî
sfpdcar[23] = AddStaticVehicle(523,-1611.6722,695.1595,-5.6701,180.5546,3,3); // ìîòî
sfpdcar[24] = AddStaticVehicle(523,-1616.8567,692.3514,-5.6723,177.3526,3,3); // ìîòî
sfpdcar[25] = AddStaticVehicle(523,-1620.4467,692.5175,-5.6723,177.3526,3,3); // ìîòî
sfpdcar[26] = AddStaticVehicle(523,-1624.2755,692.6945,-5.6723,177.3526,3,3); // ìîòî
sfpdcar[27] = AddStaticVehicle(523,-1629.6143,692.9413,-5.6722,177.3526,3,3); // ìîòî
sfpdcar[28] = AddStaticVehicle(523,-1632.7988,693.0886,-5.6722,177.3526,3,3); // ìîòî
Код:
ambucar[0] = AddStaticVehicleEx(416,-2589.39990234,658.09997559,14.60000038,270.00000000,1,3,900); //Ambulance
ambucar[1] = AddStaticVehicleEx(416,-2589.39990234,627.50000000,14.60000038,270.00000000,1,3,900); //Ambulance
ambucar[2] = AddStaticVehicleEx(416,-2589.39990234,622.20001221,14.60000038,270.00000000,1,3,900); //Ambulance
ambucar[3] = AddStaticVehicleEx(416,-2546.40014648,658.00000000,14.60000038,89.99450684,1,3,900); //Ambulance
ambucar[4] = AddStaticVehicleEx(416,-2589.39990234,632.59997559,14.60000038,270.00000000,1,3,900); //Ambulance
ambucar[5] = AddStaticVehicleEx(416,-2589.39990234,637.59997559,14.60000038,270.00000000,1,3,900); //Ambulance
ambucar[6] = AddStaticVehicleEx(416,-2589.39941406,647.79980469,14.60000038,270.00000000,1,3,900); //Ambulance
ambucar[7] = AddStaticVehicleEx(416,-2589.39990234,652.90002441,14.60000038,270.00000000,1,3,900); //Ambulance
ambucar[8] = AddStaticVehicleEx(416,-2546.40014648,637.70001221,14.60000038,89.99450684,1,3,900); //Ambulance
ambucar[9] = AddStaticVehicleEx(416,-2546.40014648,622.09997559,14.60000038,89.99450684,1,3,900); //Ambulance
ambucar[10] = AddStaticVehicleEx(416,-2546.40014648,632.50000000,14.60000038,89.99450684,1,3,900); //Ambulance
ambucar[11] = AddStaticVehicleEx(416,-2546.40014648,642.70001221,14.60000038,89.99450684,1,3,900); //Ambulance
ambucar[12] = AddStaticVehicleEx(416,-2546.40014648,647.70001221,14.60000038,89.99450684,1,3,900); //Ambulance
ambucar[13] = AddStaticVehicleEx(416,-2546.40014648,652.79998779,14.60000038,89.99450684,1,3,900); //Ambulance
ambucar[14] = AddStaticVehicleEx(416,-2546.40014648,627.29998779,14.60000038,89.99450684,1,3,900); //Ambulance
